2022-02-17 17:56:04 -03:00
|
|
|
<h1 align="center">LibreX</h1>
|
2022-02-20 19:06:07 -03:00
|
|
|
|
2022-04-21 05:19:35 -04:00
|
|
|
<p float="left">
|
2022-05-11 14:08:16 -04:00
|
|
|
<img src="https://user-images.githubusercontent.com/49120638/164421187-2730b9d5-d5b9-4606-b6b9-145b11cfdb55.png" width="400">
|
|
|
|
<img src="https://user-images.githubusercontent.com/49120638/164421606-3a315cca-d44a-4efe-863d-5771661e66e3.png" width="400">
|
2022-02-17 17:56:04 -03:00
|
|
|
</p>
|
|
|
|
|
2022-03-01 13:37:56 -03:00
|
|
|
<p align="center">A privacy respecting free as in freedom meta search engine</p>
|
2022-02-17 17:56:04 -03:00
|
|
|
|
|
|
|
# Online instances
|
2022-05-11 14:08:16 -04:00
|
|
|
| URL | Country | TOR | I2P |
|
|
|
|
|-|-|-|-|
|
|
|
|
| [librex.beparanoid.de](https://librex.beparanoid.de/) | 🇨🇭 CH | [✅](http://librex.prnoid54e44a4bduq5due64jkk7wcnkxcp5kv3juncm7veptjcqudgyd.onion/) | [✅](http://fboseyskrqpi6yjiifvz4ryuoiswjezkqsfxfkm2vmbuhehbpr7q.b32.i2p/) |
|
|
|
|
| [search.davidovski.xyz](https://search.davidovski.xyz/) | 🇬🇧 UK | ❌ | ❌ |
|
2022-05-30 16:24:47 -04:00
|
|
|
| [librex.elpengu.com](https://librex.elpengu.com/) | 🇫🇷 FR | ❌ | ❌ |
|
|
|
|
| [72nlfo7o344ydn6rvct327ci...onion](http://72nlfo7o344ydn6rvct327cifhrafakk2ib5uh67i2lvwzidyxqyf3qd.onion/) | 🧅 ?? | [✅](http://72nlfo7o344ydn6rvct327cifhrafakk2ib5uh67i2lvwzidyxqyf3qd.onion/) | ❌ |
|
2022-02-17 17:56:04 -03:00
|
|
|
|
2022-05-11 14:08:16 -04:00
|
|
|
|
|
|
|
<br>If you wish to get your instance added create an issue with the `new instance` label and this information:
|
2022-02-19 10:08:42 -03:00
|
|
|
+ the URL of your instance
|
|
|
|
+ the country where your instance is being hosted
|
|
|
|
|
|
|
|
Your request will be **rejected** if your instance:
|
|
|
|
+ contains JavaScript
|
|
|
|
+ contains ads
|
2022-05-30 16:24:47 -04:00
|
|
|
+ has cloudflare protection
|
2022-02-19 10:08:42 -03:00
|
|
|
|
2022-02-17 17:56:04 -03:00
|
|
|
# Features
|
2022-03-10 07:18:07 -03:00
|
|
|
+ Ad & JavaScript free
|
2022-03-03 07:07:14 -03:00
|
|
|
+ Torrent results from popular torrent sites
|
2022-04-21 05:17:50 -04:00
|
|
|
+ Special queries (e.g.: 2.4 btc to usd)
|
2022-02-17 17:56:04 -03:00
|
|
|
+ Tracking snippets from URLs are removed
|
2022-03-30 08:18:31 -03:00
|
|
|
+ Multiple color themes
|
2022-02-17 17:56:04 -03:00
|
|
|
+ Image results are converted to base64 to prevent clients from connecting to Google servers
|
|
|
|
+ Supports both POST and GET requests
|
2022-04-21 05:17:50 -04:00
|
|
|
+ Popular social media sites (YouTube, Instagram, Twitter etc.) are replaced with privacy friendly front-ends
|
2022-03-01 13:37:56 -03:00
|
|
|
+ Easy to use JSON API for developers
|
2022-02-17 17:56:04 -03:00
|
|
|
+ No 3rd party libs are used
|
|
|
|
+ Easy to setup
|
|
|
|
|
|
|
|
# Hosting
|
2022-05-11 14:08:16 -04:00
|
|
|
Install the packages:
|
|
|
|
```
|
|
|
|
sudo apt install php php-fpm php-dom php-curl nginx
|
|
|
|
```
|
|
|
|
|
|
|
|
Clone LibreX:
|
2022-03-01 14:10:40 -03:00
|
|
|
```
|
|
|
|
git clone https://github.com/hnhx/librex.git
|
2022-05-11 14:08:16 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
Make sure that the config and the opensearch file won't change when you do git pull:
|
|
|
|
```
|
2022-03-01 14:10:40 -03:00
|
|
|
cd librex
|
2022-04-27 15:10:39 -04:00
|
|
|
mv config.php.example config.php
|
2022-05-11 14:08:16 -04:00
|
|
|
mv opensearch.xml.example opensearch.xml
|
|
|
|
```
|
|
|
|
|
|
|
|
Change opensearch.xml to point to your domain:
|
|
|
|
```
|
2022-04-27 15:10:39 -04:00
|
|
|
sed -i 's/http:\/\/localhost/https:\/\/your.domain/g' opensearch.xml
|
2022-03-01 14:10:40 -03:00
|
|
|
```
|
2022-05-11 14:08:16 -04:00
|
|
|
|
|
|
|
To keep LibreX up to date enable the LibreX systemd service:
|
|
|
|
```
|
|
|
|
cp librex_updater.service /etc/systemd/system/
|
|
|
|
systemctl enable --now librex_updater # edit the service file before you enable it
|
|
|
|
```
|
|
|
|
|
|
|
|
Example nginx config:
|
|
|
|
```
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
|
|
|
server_name your.domain;
|
|
|
|
|
|
|
|
root /var/www/html/librex;
|
|
|
|
index index.php;
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
include snippets/fastcgi-php.conf;
|
|
|
|
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Start the php-fpm and the nginx systemd service
|
|
|
|
```
|
|
|
|
sudo systemctl enable --now php7.4-fpm nginx # replace the version if its needed
|
|
|
|
```
|
|
|
|
|
|
|
|
Now LibreX should be running!
|
2022-02-17 17:56:04 -03:00
|
|
|
|
|
|
|
# API
|
2022-03-03 07:07:14 -03:00
|
|
|
Example API request: `.../api.php?q=gentoo&p=2&type=0` <br/><br/>
|
|
|
|
`q` is the keyword<br/>`p` is the result page (the first page is `0`)<br/>`type` is the search type (`0`=text, `1`=image, `2`=video, `3`=torrent)
|
2022-02-17 17:56:04 -03:00
|
|
|
<br/><br/>
|
2022-03-03 07:11:05 -03:00
|
|
|
The API also supports both POST and GET requests.
|
2022-02-17 17:56:04 -03:00
|
|
|
|
2022-02-17 18:02:13 -03:00
|
|
|
# Donate
|
2022-05-11 14:08:16 -04:00
|
|
|
### Bitcoin (BTC)
|
|
|
|
```bc1qs43kh6tvhch02dtsp7x7hcrwj8fwe4rzy7lp0h```
|
2022-03-30 08:18:31 -03:00
|
|
|
|
2022-05-11 14:08:16 -04:00
|
|
|
### Monero (XMR)
|
|
|
|
```41dGQr9EwZBfYBY3fibTtJZYfssfRuzJZDSVDeneoVcgckehK3BiLxAV4FvEVJiVqdiW996zvMxhFB8G8ot9nBFqQ84VkuC```
|