mirror of
https://git.bakhai.co.in/FbIN/fossq.git
synced 2026-04-18 11:26:17 +05:30
Switched to new domain
FOSS-Q is the new domain for this search.
This commit is contained in:
parent
4413387b38
commit
aaa853f5a0
20 changed files with 135 additions and 135 deletions
14
README.md
14
README.md
|
|
@ -1,12 +1,12 @@
|
||||||
# 4Get Search
|
# FOSS-Q Search
|
||||||
**4Get** is a proxy search engine that works.
|
**FOSS-Q** is a proxy search engine that works.
|
||||||
|
|
||||||
## About 4Get
|
## About FOSS-Q
|
||||||
https://4g.flossboxin.org.in/about
|
https://fossq.com/about
|
||||||
|
|
||||||
## Totally unbiased comparison between alternatives
|
## Totally unbiased comparison between alternatives
|
||||||
|
|
||||||
| | 4Get | searx(ng) | FbIN-LibreY | araa | hearch.co |
|
| | FOSS-Q | searx(ng) | FbIN-LibreY | araa | hearch.co |
|
||||||
|----------------------------|-------------------------|-----------|-------------|-----------|-------------------|
|
|----------------------------|-------------------------|-----------|-------------|-----------|-------------------|
|
||||||
| RAM usage | 200-400mb~ | 2GB~ | 200-400mb~ | 2GB~ | idk |
|
| RAM usage | 200-400mb~ | 2GB~ | 200-400mb~ | 2GB~ | idk |
|
||||||
| Does it work | no (debunked by snopes) | yes | yes | a little | better than searx |
|
| Does it work | no (debunked by snopes) | yes | yes | a little | better than searx |
|
||||||
|
|
@ -20,7 +20,7 @@ https://4g.flossboxin.org.in/about
|
||||||
5. Favicon fetcher with caching support & image proxy
|
5. Favicon fetcher with caching support & image proxy
|
||||||
6. Bunch of other stuff
|
6. Bunch of other stuff
|
||||||
|
|
||||||
tl;dr 4Get is the best way to browse for stuff.
|
tl;dr FOSS-Q is the best way to browse for stuff.
|
||||||
|
|
||||||
# Supported websites
|
# Supported websites
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ tl;dr 4Get is the best way to browse for stuff.
|
||||||
| Curlie | | | | | |
|
| Curlie | | | | | |
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
Refer to the <a href="https://git.bakhai.co.in/FbIN/4Get/src/branch/main/docs/">documentation index</a>. I recommend following the <a href="https://git.bakhai.co.in/FbIN/4Get/src/branch/main/docs/apache2.md">apache2 guide</a>.
|
Refer to the <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/">documentation index</a>. I recommend following the <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">apache2 guide</a>.
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
Stuff breaks all the time but I repair it all the time too. Email me here: <b>dev(at)flossboxin(dot)org(dot)in</b> or create an issue.
|
Stuff breaks all the time but I repair it all the time too. Email me here: <b>dev(at)flossboxin(dot)org(dot)in</b> or create an issue.
|
||||||
|
|
|
||||||
14
api.txt
14
api.txt
|
|
@ -12,7 +12,7 @@
|
||||||
4444
|
4444
|
||||||
44
|
44
|
||||||
|
|
||||||
+ Welcome to the 4Get API documentation +
|
+ Welcome to the FOSS-Q API documentation +
|
||||||
|
|
||||||
+ Terms of use
|
+ Terms of use
|
||||||
Do NOT misuse the API. Misuses can include... ::
|
Do NOT misuse the API. Misuses can include... ::
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
|
|
||||||
If you wish to engage in the activities listed under "misuses", feel
|
If you wish to engage in the activities listed under "misuses", feel
|
||||||
free to download the source code of the project and running 4get
|
free to download the source code of the project and running FOSS-Q
|
||||||
under your own terms. Please respect the terms of use listed here so
|
under your own terms. Please respect the terms of use listed here so
|
||||||
that this website may be available to all in the far future.
|
that this website may be available to all in the far future.
|
||||||
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
lol!!!!
|
lol!!!!
|
||||||
|
|
||||||
Get your instance running here ::
|
Get your instance running here ::
|
||||||
https://git.bakhai.co.in/FbIN/4get
|
https://git.flossboxin.org.in/FbIN/fossq
|
||||||
|
|
||||||
Thanks!
|
Thanks!
|
||||||
|
|
||||||
|
|
@ -93,7 +93,7 @@
|
||||||
array position on the serber's memory. The second part is an
|
array position on the serber's memory. The second part is an
|
||||||
encryption key used to decode the data at that position. This way,
|
encryption key used to decode the data at that position. This way,
|
||||||
it is impossible to supply invalid pagination data and it is
|
it is impossible to supply invalid pagination data and it is
|
||||||
impossible for a 4get operator to peek at the private data of the
|
impossible for a FOSS-Q operator to peek at the private data of the
|
||||||
user after a request has been made.
|
user after a request has been made.
|
||||||
|
|
||||||
The tokens will expire as soon as they are used or after a 15
|
The tokens will expire as soon as they are used or after a 15
|
||||||
|
|
@ -106,7 +106,7 @@
|
||||||
|
|
||||||
|
|
||||||
+ API Parameters
|
+ API Parameters
|
||||||
To construct a valid request, you can use the 4get web interface
|
To construct a valid request, you can use the FOSS-Q web interface
|
||||||
to craft a valid request, and replace "/web" with "/api/v1/web".
|
to craft a valid request, and replace "/web" with "/api/v1/web".
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
/_/
|
/_/
|
||||||
|
|
||||||
+ /ami4get
|
+ /ami4get
|
||||||
Tells you basic information about the 4get instance. CORS requests
|
Tells you basic information about the FOSS-Q instance. CORS requests
|
||||||
are allowed on this endpoint.
|
are allowed on this endpoint.
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -284,7 +284,7 @@
|
||||||
URL should return a valid HTTP audio stream. To access the endpoint,
|
URL should return a valid HTTP audio stream. To access the endpoint,
|
||||||
you must add the following prefix in your request, like so:
|
you must add the following prefix in your request, like so:
|
||||||
|
|
||||||
https://4g.flossboxin.org.in/audio/<endpoint>?s=<url>
|
https://fossq.com/audio/<endpoint>?s=<url>
|
||||||
|
|
||||||
|
|
||||||
+ /favicon
|
+ /favicon
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
<?php
|
<?php
|
||||||
class config{
|
class config{
|
||||||
// Welcome to the 4Get configuration file
|
// Welcome to the FOSS-Q configuration file
|
||||||
// When updating your instance, please make sure this file isn't missing
|
// When updating your instance, please make sure this file isn't missing
|
||||||
// any parameters.
|
// any parameters.
|
||||||
|
|
||||||
// 4Get version. Please keep this updated
|
// FOSS-Q version. Please keep this updated
|
||||||
const VERSION = 8;
|
const VERSION = 8;
|
||||||
|
|
||||||
// Will be shown pretty much everywhere.
|
// Will be shown pretty much everywhere.
|
||||||
const SERVER_NAME = "FbIN 4G";
|
const SERVER_NAME = "FOSS-Q";
|
||||||
|
|
||||||
// Will be shown in <meta> tag on home page
|
// Will be shown in <meta> tag on home page
|
||||||
const SERVER_SHORT_DESCRIPTION = "4G is a proxy search engine that just works.";
|
const SERVER_SHORT_DESCRIPTION = "FOSS-Q is a proxy search engine that just works.";
|
||||||
|
|
||||||
// Will be shown in server list ping (null for no description)
|
// Will be shown in server list ping (null for no description)
|
||||||
const SERVER_LONG_DESCRIPTION = FbIN;
|
const SERVER_LONG_DESCRIPTION = "FOSS-Q by FbIN";
|
||||||
|
|
||||||
// Add your own themes in "static/themes". Set to "Dark" for default theme.
|
// Add your own themes in "static/themes". Set to "Dark" for default theme.
|
||||||
// Eg. To use "static/themes/Cream.css", specify "Cream".
|
// Eg. To use "static/themes/Cream.css", specify "Cream".
|
||||||
|
|
@ -66,7 +66,7 @@ class config{
|
||||||
// Block SSL ciphers used by CLI tools used for botting
|
// Block SSL ciphers used by CLI tools used for botting
|
||||||
// Basically a primitive version of Cloudflare's browser integrity check
|
// Basically a primitive version of Cloudflare's browser integrity check
|
||||||
// ** If curl can still access the site (with spoofed headers), please make sure you use the new apache2 config **
|
// ** If curl can still access the site (with spoofed headers), please make sure you use the new apache2 config **
|
||||||
// https://git.bakhai.co.in/FbIN/4Get/docs/apache2.md
|
// https://git.flossboxin.org.in/FbIN/fossq/docs/apache2.md
|
||||||
const DISALLOWED_SSL = [
|
const DISALLOWED_SSL = [
|
||||||
// "TLS_AES_256_GCM_SHA384" // used by WGET and CURL
|
// "TLS_AES_256_GCM_SHA384" // used by WGET and CURL
|
||||||
];
|
];
|
||||||
|
|
@ -84,7 +84,7 @@ class config{
|
||||||
//"http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion"
|
//"http://4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion"
|
||||||
];
|
];
|
||||||
|
|
||||||
// Known 4Get instances. MUST use the https protocol if your instance uses
|
// Known FOSS-Q instances. MUST use the https protocol if your instance uses
|
||||||
// it. Is used to generate a distributed list of instances.
|
// it. Is used to generate a distributed list of instances.
|
||||||
// To appear in the list of an instance, contact the host and if everyone added
|
// To appear in the list of an instance, contact the host and if everyone added
|
||||||
// eachother your serber should appear everywhere.
|
// eachother your serber should appear everywhere.
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,25 @@
|
||||||
# Sample Apache2 configuration
|
# Sample Apache2 configuration
|
||||||
This is the apache2 configuration file used on the 4g.flossboxin.org.in official instance, in hopes that it's useful to you!
|
This is the apache2 configuration file used on the fossq.com official instance, in hopes that it's useful to you!
|
||||||
|
|
||||||
Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">go here.</a>.
|
Looking for the apache2 guide? <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">go here.</a>.
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName www.4g.flossboxin.org.in
|
ServerName www.fossq.com
|
||||||
|
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
|
|
||||||
RedirectMatch 301 ^(.*)$ https://4g.flossboxin.org.in$1
|
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName 4g.flossboxin.org.in
|
ServerName fossq.com
|
||||||
|
|
||||||
ServerAdmin dev@flossboxin.org.in
|
ServerAdmin dev@flossboxin.org.in
|
||||||
DocumentRoot /var/www/4get
|
DocumentRoot /var/www/fossq
|
||||||
|
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
SSLOptions +StdEnvVars
|
SSLOptions +StdEnvVars
|
||||||
|
|
@ -33,11 +33,11 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
||||||
AddOutputFilterByType DEFLATE text/plain
|
AddOutputFilterByType DEFLATE text/plain
|
||||||
AddOutputFilterByType DEFLATE text/css
|
AddOutputFilterByType DEFLATE text/css
|
||||||
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
|
|
||||||
<Directory /var/www/4get>
|
<Directory /var/www/fossq>
|
||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
|
|
@ -49,7 +49,7 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# deny access to private resources
|
# deny access to private resources
|
||||||
<Directory /var/www/4get/data/>
|
<Directory /var/www/fossq/data/>
|
||||||
Order Deny,allow
|
Order Deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
@ -59,9 +59,9 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
||||||
ServerName www.flossboxin.org.in
|
ServerName www.flossboxin.org.in
|
||||||
|
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
|
|
||||||
RedirectMatch 301 ^(.*)$ https://flossboxin.org.in$1
|
RedirectMatch 301 ^(.*)$ https://flossboxin.org.in$1
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
@ -84,9 +84,9 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
||||||
AddOutputFilterByType DEFLATE text/plain
|
AddOutputFilterByType DEFLATE text/plain
|
||||||
AddOutputFilterByType DEFLATE text/css
|
AddOutputFilterByType DEFLATE text/css
|
||||||
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
|
|
||||||
<Directory /var/www/flossboxin>
|
<Directory /var/www/flossboxin>
|
||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
|
|
@ -146,7 +146,7 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName git.bakhai.co.in
|
ServerName git.flossboxin.org.in
|
||||||
|
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
SSLOptions +StdEnvVars
|
SSLOptions +StdEnvVars
|
||||||
|
|
@ -160,9 +160,9 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
||||||
AddOutputFilterByType DEFLATE text/plain
|
AddOutputFilterByType DEFLATE text/plain
|
||||||
AddOutputFilterByType DEFLATE text/css
|
AddOutputFilterByType DEFLATE text/css
|
||||||
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
|
|
||||||
ProxyPreserveHost On
|
ProxyPreserveHost On
|
||||||
ProxyRequests off
|
ProxyRequests off
|
||||||
|
|
@ -188,8 +188,8 @@ Looking for the apache2 guide? <a href="https://git.bakhai.co.in/FbIN/4get/src/b
|
||||||
AddOutputFilterByType DEFLATE text/plain
|
AddOutputFilterByType DEFLATE text/plain
|
||||||
AddOutputFilterByType DEFLATE text/css
|
AddOutputFilterByType DEFLATE text/css
|
||||||
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Install guide for Apache2 webserver
|
# Install guide for Apache2 webserver
|
||||||
Welcome to the new and revamped 4get install manual for apache2. Even if you already have services running on an existing installation of apache2, you should still be able to adapt this guide to your needs.
|
Welcome to the new and revamped fossq install manual for apache2. Even if you already have services running on an existing installation of apache2, you should still be able to adapt this guide to your needs.
|
||||||
|
|
||||||
For starters, login as `root`.
|
For starters, login as `root`.
|
||||||
|
|
||||||
|
|
@ -41,24 +41,24 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
||||||
1. The `VirtualHost` here instructs apache2 to redirect all **HTTP** traffic that specify an unknown `Host` header be redirected to a specific domain of your choice. Configuring this is not required but highly recommended.
|
1. The `VirtualHost` here instructs apache2 to redirect all **HTTP** traffic that specify an unknown `Host` header be redirected to a specific domain of your choice. Configuring this is not required but highly recommended.
|
||||||
```xml
|
```xml
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
# no domain = go to 4g.flossboxin.org.in
|
# no domain = go to fossq.com
|
||||||
RedirectMatch 301 ^(.*)$ https://4g.flossboxin.org.in$1
|
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
2. This instruction tells apache2 to redirect all HTTP traffic on `Host` flossboxin.org.in to the HTTPS version of the site. You should add a rule like this for all of your services explicitly.
|
2. This instruction tells apache2 to redirect all HTTP traffic on `Host` fossq.com to the HTTPS version of the site. You should add a rule like this for all of your services explicitly.
|
||||||
```xml
|
```xml
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName flossboxin.org.in
|
ServerName fossq.com
|
||||||
RedirectMatch 301 ^(.*)$ https://flossboxin.org.in$1
|
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Subdomains won't be matched by the above rule, so I recommend you also add them to be more explicit:
|
3. Subdomains won't be matched by the above rule, so I recommend you also add them to be more explicit:
|
||||||
```xml
|
```xml
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName www.flossboxin.org.in
|
ServerName www.fossq.com
|
||||||
RedirectMatch 301 ^(.*)$ https://flossboxin.org.in$1
|
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
||||||
```xml
|
```xml
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
# tor site
|
# tor site
|
||||||
ServerName 4getwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion
|
ServerName fossqwebfrq5zr4sxugk6htxvawqehxtdgjrbcn2oslllcol2vepa23yd.onion
|
||||||
|
|
||||||
# compress
|
# compress
|
||||||
AddOutputFilterByType DEFLATE application/json
|
AddOutputFilterByType DEFLATE application/json
|
||||||
|
|
@ -78,7 +78,7 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
||||||
AddOutputFilterByType DEFLATE text/plain
|
AddOutputFilterByType DEFLATE text/plain
|
||||||
AddOutputFilterByType DEFLATE text/css
|
AddOutputFilterByType DEFLATE text/css
|
||||||
|
|
||||||
DocumentRoot /var/www/4get
|
DocumentRoot /var/www/fossq
|
||||||
|
|
||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost/"
|
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost/"
|
||||||
|
|
@ -90,7 +90,7 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule ^([^\.]+)$ $1.php [NC,L]
|
RewriteRule ^([^\.]+)$ $1.php [NC,L]
|
||||||
|
|
||||||
<Directory /var/www/4get>
|
<Directory /var/www/fossq>
|
||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
|
|
@ -102,40 +102,40 @@ Now, edit the following file: `/etc/apache2/sites-available/000-default.conf`, r
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# deny access to private resources
|
# deny access to private resources
|
||||||
<Directory /var/www/4get/data/>
|
<Directory /var/www/fossq/data/>
|
||||||
Order Deny,allow
|
Order Deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
</Directory>
|
</Directory>
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
To make the above snippet work, please refer to our <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/tor.md">tor site guide</a>.
|
To make the above snippet work, please refer to our <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/tor.md">tor site guide</a>.
|
||||||
|
|
||||||
## default-ssl.conf
|
## default-ssl.conf
|
||||||
Now, edit the file `/etc/apache2/sites-available/default-ssl.conf`, remove everything and, again, add each rule while modifying the relevant fields:
|
Now, edit the file `/etc/apache2/sites-available/default-ssl.conf`, remove everything and, again, add each rule while modifying the relevant fields:
|
||||||
|
|
||||||
First, append the following redirect rule to point traffic from `www.4g.flossboxin.org.in` to `4g.flossboxin.org.in`:
|
First, append the following redirect rule to point traffic from `www.fossq.com` to `fossq.com`:
|
||||||
```xml
|
```xml
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName www.4g.flossboxin.org.in
|
ServerName www.fossq.com
|
||||||
|
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
|
|
||||||
RedirectMatch 301 ^(.*)$ https://4g.flossboxin.org.in$1
|
RedirectMatch 301 ^(.*)$ https://fossq.com$1
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
This ruleset tells apache2 where 4get is located (`/var/www/4get`), ensures that `4g.flossboxin.org.in/settings` resolves to `4g.flossboxin.org.in/settings.php` internally and that we deny access to `/data/*`, which may contain files you might want to keep private. `StdEnvVArs+` will make it so that PHP can view if the connection uses HTTPS, and which cipher was used. Useful for basic bot protection.
|
This ruleset tells apache2 where fossq is located (`/var/www/fossq`), ensures that `fossq.com/settings` resolves to `fossq.com/settings.php` internally and that we deny access to `/data/*`, which may contain files you might want to keep private. `StdEnvVArs+` will make it so that PHP can view if the connection uses HTTPS, and which cipher was used. Useful for basic bot protection.
|
||||||
|
|
||||||
Make sure to replace `4g.flossboxin.org.in` with your own domain under the `SSLCertificate*` directives!
|
Make sure to replace `fossq.com` with your own domain under the `SSLCertificate*` directives!
|
||||||
```xml
|
```xml
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ServerName 4g.flossboxin.org.in
|
ServerName fossq.com
|
||||||
|
|
||||||
ServerAdmin dev@flossboxin.org.in
|
ServerAdmin dev@flossboxin.org.in
|
||||||
DocumentRoot /var/www/4get
|
DocumentRoot /var/www/fossq
|
||||||
|
|
||||||
Protocols h2 http/1.1
|
Protocols h2 http/1.1
|
||||||
SSLEngine On
|
SSLEngine On
|
||||||
|
|
@ -154,11 +154,11 @@ Make sure to replace `4g.flossboxin.org.in` with your own domain under the `SSLC
|
||||||
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost/"
|
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost/"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
SSLCertificateFile /etc/letsencrypt/live/4g.flossboxin.org.in/fullchain.pem
|
SSLCertificateFile /etc/letsencrypt/live/fossq.com/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/4g.flossboxin.org.in/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/fossq.com/privkey.pem
|
||||||
SSLCertificateChainFile /etc/letsencrypt/live/4g.flossboxin.org.in/chain.pem
|
SSLCertificateChainFile /etc/letsencrypt/live/fossq.com/chain.pem
|
||||||
|
|
||||||
<Directory /var/www/4get>
|
<Directory /var/www/fossq>
|
||||||
Options -MultiViews
|
Options -MultiViews
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
|
|
@ -170,14 +170,14 @@ Make sure to replace `4g.flossboxin.org.in` with your own domain under the `SSLC
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# deny access to private resources
|
# deny access to private resources
|
||||||
<Directory /var/www/4get/data/>
|
<Directory /var/www/fossq/data/>
|
||||||
Order Deny,allow
|
Order Deny,allow
|
||||||
Deny from all
|
Deny from all
|
||||||
</Directory>
|
</Directory>
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
|
|
||||||
By default, the first rule dictates where traffic should be redirected to in case the client specifies an unknown domain name. Don't forget your webserver's other rules! For a complete real-world example, please <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2-example.md">check out my real-world config file I use on 4g.flossboxin.org.in</a>.
|
By default, the first rule dictates where traffic should be redirected to in case the client specifies an unknown domain name. Don't forget your webserver's other rules! For a complete real-world example, please <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2-example.md">check out my real-world config file I use on fossq.com</a>.
|
||||||
|
|
||||||
## security.conf
|
## security.conf
|
||||||
If you enabled the `headers` module, you can head over to `/etc/apache2/conf-enabled/security.conf` and edit:
|
If you enabled the `headers` module, you can head over to `/etc/apache2/conf-enabled/security.conf` and edit:
|
||||||
|
|
@ -215,12 +215,12 @@ service apache2 stop
|
||||||
|
|
||||||
Now, run `certbot`, and specify all of your domains by prepending `-d` every time. Make sure the first domain you specify is your main domain, and the same domain you specified in the configuration above! We use ECDSA encryption here as it's better than RSA.
|
Now, run `certbot`, and specify all of your domains by prepending `-d` every time. Make sure the first domain you specify is your main domain, and the same domain you specified in the configuration above! We use ECDSA encryption here as it's better than RSA.
|
||||||
```sh
|
```sh
|
||||||
certbot certonly --standalone --key-type ecdsa -d 4g.flossboxin.org.in -d www.4g.flossboxin.org.in -d flossboxin.org.in -d www.flossboxin.org.in
|
certbot certonly --standalone --key-type ecdsa -d fossq.com -d www.fossq.com -d fossq.com -d www.fossq.com
|
||||||
```
|
```
|
||||||
|
|
||||||
Certbot should ask you a few questions, just play along. At the end of the setup, certbot should tell you about the location of the certificates. Double check to make sure they correspond to the paths we specified in `default-ssl.conf`. Your certificates should now update every 2-3 months automatically.
|
Certbot should ask you a few questions, just play along. At the end of the setup, certbot should tell you about the location of the certificates. Double check to make sure they correspond to the paths we specified in `default-ssl.conf`. Your certificates should now update every 2-3 months automatically.
|
||||||
|
|
||||||
After this is complete, create a directory in `/var/www/4get`.
|
After this is complete, create a directory in `/var/www/fossq`.
|
||||||
|
|
||||||
Now, start `apache2`.
|
Now, start `apache2`.
|
||||||
```sh
|
```sh
|
||||||
|
|
@ -232,11 +232,11 @@ Congratulations! You now have a... 404 error on your webserver, if everything we
|
||||||
# Import the fun junk
|
# Import the fun junk
|
||||||
Run these commands:
|
Run these commands:
|
||||||
```
|
```
|
||||||
cd /var/www/4get
|
cd /var/www/fossq
|
||||||
git clone https://git.bakhai.co.in/FbIN/4get
|
git clone https://git.flossboxin.org.in/FbIN/fossq
|
||||||
chmod 777 -R icons/
|
chmod 777 -R icons/
|
||||||
```
|
```
|
||||||
|
|
||||||
... And try accessing your webserver. You should now have a working 4get instance!
|
... And try accessing your webserver. You should now have a working fossq instance!
|
||||||
|
|
||||||
Please make sure to check out how to further <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/configure.md">configure 4get</a> to your liking!
|
Please make sure to check out how to further <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/configure.md">configure fossq</a> to your liking!
|
||||||
|
|
@ -6,17 +6,17 @@
|
||||||
|
|
||||||
2. Clone this repository where you want to host this from:
|
2. Clone this repository where you want to host this from:
|
||||||
|
|
||||||
`cd /var/www && sudo git clone https://git.konakona.moe/diowo/4get`
|
`cd /var/www && sudo git clone https://git.flossboxin.org.in/FbIN/fossq`
|
||||||
|
|
||||||
3. Set permission on the `icons` directory inside `4get`
|
3. Set permission on the `icons` directory inside `fossq`
|
||||||
|
|
||||||
`cd /var/www/4get/ && sudo chmod 777 -R icons/`
|
`cd /var/www/fossq/ && sudo chmod 777 -R icons/`
|
||||||
|
|
||||||
4. Add an entry for 4get on your Caddyfile at `/etc/caddy/Caddyfile`
|
4. Add an entry for fossq on your Caddyfile at `/etc/caddy/Caddyfile`
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
4get.konakona.moe {
|
fossq.com {
|
||||||
root * /var/www/4get
|
root * /var/www/fossq
|
||||||
file_server
|
file_server
|
||||||
encode gzip
|
encode gzip
|
||||||
php_fastcgi unix//var/run/php/php8.2-fpm.sock {
|
php_fastcgi unix//var/run/php/php8.2-fpm.sock {
|
||||||
|
|
@ -47,7 +47,7 @@ Edit `000-default-le-ssl.conf`
|
||||||
|
|
||||||
Add this at the end:
|
Add this at the end:
|
||||||
```xml
|
```xml
|
||||||
<Directory /var/www/html/4get>
|
<Directory /var/www/html/fossq>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{REQUEST_FILENAME}.php -f
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
||||||
RewriteRule (.*) $1.php [L]
|
RewriteRule (.*) $1.php [L]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# 4get configuation options
|
# FOSS-Q configuation options
|
||||||
|
|
||||||
Welcome! This guide assumes that you have a working 4get instance. This will help you configure your instance to the best it can be!
|
Welcome! This guide assumes that you have a working fossq instance. This will help you configure your instance to the best it can be!
|
||||||
|
|
||||||
# Files location
|
# Files location
|
||||||
1. The main configuration file is located at `data/config.php`
|
1. The main configuration file is located at `data/config.php`
|
||||||
|
|
@ -57,7 +57,7 @@ To be listed on https://4get.ca/instances , you must contact *any* of the people
|
||||||
If you see spammy entries in your instances list, simply remove the instance from your list that pushes the offending entries.
|
If you see spammy entries in your instances list, simply remove the instance from your list that pushes the offending entries.
|
||||||
|
|
||||||
# Proxies
|
# Proxies
|
||||||
4get supports rotating proxies for scrapers! Configuring one is really easy.
|
FOSS-Q supports rotating proxies for scrapers! Configuring one is really easy.
|
||||||
|
|
||||||
1. Head over to the **proxies** folder. Give it any name you want, like `myproxy`, but make sure it has the `txt` extension.
|
1. Head over to the **proxies** folder. Give it any name you want, like `myproxy`, but make sure it has the `txt` extension.
|
||||||
2. Add your proxies to the file. Examples:
|
2. Add your proxies to the file. Examples:
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<h1 align=center>Installation of 4get in NGINX</h1>
|
<h1 align=center>Installation of FOSS-Q in NGINX</h1>
|
||||||
|
|
||||||
<div align=right>
|
<div align=right>
|
||||||
|
|
||||||
> NOTE: As the previous version stated, it is better to follow the <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">Apache2 guide</a> instead of the Nginx one.
|
> NOTE: As the previous version stated, it is better to follow the <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">Apache2 guide</a> instead of the Nginx one.
|
||||||
|
|
||||||
> NOTE: This is going to guess that you're using either a <abbr title="(Arch Linux, Artix Linux, Endeavouros, etc...) ">Arch-based system</abbr> or a <abbr title="(Debian, Ubuntu, Devuan, etc...)">Debian-based system</abbr>, although you can still follow it with minor issues.
|
> NOTE: This is going to guess that you're using either a <abbr title="(Arch Linux, Artix Linux, Endeavouros, etc...) ">Arch-based system</abbr> or a <abbr title="(Debian, Ubuntu, Devuan, etc...)">Debian-based system</abbr>, although you can still follow it with minor issues.
|
||||||
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
* On Arch-based, run `pacman -Syu`.
|
* On Arch-based, run `pacman -Syu`.
|
||||||
* On Debian-based, run `apt update`, then `apt upgrade`.
|
* On Debian-based, run `apt update`, then `apt upgrade`.
|
||||||
3. Install the following dependencies:
|
3. Install the following dependencies:
|
||||||
* `git`: So you can clone <a href="https://git.bakhai.co.in/FbIN/4get">this</a> repository.
|
* `git`: So you can clone <a href="https://git.flossboxin.org.in/FbIN/fossq">this</a> repository.
|
||||||
* `nginx`: So you can run Nginx.
|
* `nginx`: So you can run Nginx.
|
||||||
* `php-fpm`: This is what allows Nginx to run *(and show)* PHP files.
|
* `php-fpm`: This is what allows Nginx to run *(and show)* PHP files.
|
||||||
* `php-imagick`, `imagemagick`: Image manipulation.
|
* `php-imagick`, `imagemagick`: Image manipulation.
|
||||||
|
|
@ -42,15 +42,15 @@
|
||||||
# If it does not, run:
|
# If it does not, run:
|
||||||
mkdir conf.d
|
mkdir conf.d
|
||||||
```
|
```
|
||||||
5. Make a file inside `conf.d/` called `4get.conf` and place the following content:
|
5. Make a file inside `conf.d/` called `fossq.conf` and place the following content:
|
||||||
* First run `touch conf.d/4get.conf` then `nano conf.d/4get.conf` to open the nano editor: *(Install it if it is not, or use another editor.)*
|
* First run `touch conf.d/fossq.conf` then `nano conf.d/fossq.conf` to open the nano editor: *(Install it if it is not, or use another editor.)*
|
||||||
```sh
|
```sh
|
||||||
server {
|
server {
|
||||||
access_log /dev/null; # Search log file. Do you really need to?
|
access_log /dev/null; # Search log file. Do you really need to?
|
||||||
error_log /dev/null; # Error log file.
|
error_log /dev/null; # Error log file.
|
||||||
|
|
||||||
# Change this if you have 4get in another folder.
|
# Change this if you have fossq in another folder.
|
||||||
root /var/www/4get;
|
root /var/www/fossq;
|
||||||
# Change 'yourdomain' to your domain.
|
# Change 'yourdomain' to your domain.
|
||||||
server_name www.yourdomain.com yourdomain.com;
|
server_name www.yourdomain.com yourdomain.com;
|
||||||
# Port to listen to.
|
# Port to listen to.
|
||||||
|
|
@ -121,7 +121,7 @@
|
||||||
dinitctl restart nginx
|
dinitctl restart nginx
|
||||||
```
|
```
|
||||||
6. Clone the repository to `/var/www`:
|
6. Clone the repository to `/var/www`:
|
||||||
* `git clone --depth 1 https://git.bakhai.co.in/FbIN/4get 4get` - It clones the repository with the depth of one commit *(so it takes less time to download)* and saves the cloned repository as '4get'.
|
* `git clone --depth 1 https://git.flossboxin.org.in/FbIN/fossq fossq` - It clones the repository with the depth of one commit *(so it takes less time to download)* and saves the cloned repository as 'fossq'.
|
||||||
7. That should be it! There are some extra steps you can take, but it really just depends on you.
|
7. That should be it! There are some extra steps you can take, but it really just depends on you.
|
||||||
|
|
||||||
<h2 align=center>Encryption setup</h2>
|
<h2 align=center>Encryption setup</h2>
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
```sh
|
```sh
|
||||||
certbot --nginx --key-type ecdsa -d www.yourdomain.com -d yourdomain.com
|
certbot --nginx --key-type ecdsa -d www.yourdomain.com -d yourdomain.com
|
||||||
```
|
```
|
||||||
2. After that, certbot will deploy the certificate automatically to your 4get conf file; It should be ready to use from there.
|
2. After that, certbot will deploy the certificate automatically to your fossq conf file; It should be ready to use from there.
|
||||||
|
|
||||||
<h2 align=center>Tor Setup</h2>
|
<h2 align=center>Tor Setup</h2>
|
||||||
|
|
||||||
|
|
@ -151,8 +151,8 @@
|
||||||
access_log /dev/null; # Search log file. Do you really need to?
|
access_log /dev/null; # Search log file. Do you really need to?
|
||||||
error_log /dev/null; # Error log file.
|
error_log /dev/null; # Error log file.
|
||||||
|
|
||||||
# Change this if you have 4get in another folder.
|
# Change this if you have fossq in another folder.
|
||||||
root /var/www/4get;
|
root /var/www/fossq;
|
||||||
# Change 'onionadress.onion' to your onion link.
|
# Change 'onionadress.onion' to your onion link.
|
||||||
server_name onionadress.onion;
|
server_name onionadress.onion;
|
||||||
# Port to listen to.
|
# Port to listen to.
|
||||||
|
|
@ -179,12 +179,12 @@
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
A real world example is present in [^2].
|
A real world example is present in [^2].
|
||||||
5. Once done, check the configuration with `nginx -t`. If everything's fine and dandy, refer to <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/tor.md">the Tor guide</a> to setup your onion site.
|
5. Once done, check the configuration with `nginx -t`. If everything's fine and dandy, refer to <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/tor.md">the Tor guide</a> to setup your onion site.
|
||||||
|
|
||||||
<h2 align=center>Other important things</h2>
|
<h2 align=center>Other important things</h2>
|
||||||
|
|
||||||
1. <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/configure.md">Configuration guide</a>: Things to do after setup.
|
1. <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/configure.md">Configuration guide</a>: Things to do after setup.
|
||||||
2. <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">Apache2 guide</a>: Fallback to this if you couldn't get something to work, or you don't know something.
|
2. <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">Apache2 guide</a>: Fallback to this if you couldn't get something to work, or you don't know something.
|
||||||
|
|
||||||
<h2 align=center>Known issues</h2>
|
<h2 align=center>Known issues</h2>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
# Tor setup
|
# Tor setup
|
||||||
This guide assumes that there is already a configured webserver sitting on port 80 waiting for localhost connections. The <a href="https://git.bakhai.co.in/FbIN/4get/src/branch/main/docs/apache2.md">apache2 guide</a> guides you through this.
|
This guide assumes that there is already a configured webserver sitting on port 80 waiting for localhost connections. The <a href="https://git.flossboxin.org.in/FbIN/fossq/src/branch/main/docs/apache2.md">apache2 guide</a> guides you through this.
|
||||||
|
|
||||||
1. Login as `root`.
|
1. Login as `root`.
|
||||||
2. Install `tor`.
|
2. Install `tor`.
|
||||||
3. Edit `/etc/tor/torrc`
|
3. Edit `/etc/tor/torrc`
|
||||||
4. Go to the line that contains `HiddenServiceDir` and `HiddenServicePort`, uncomment those 2 lines and set them like this:
|
4. Go to the line that contains `HiddenServiceDir` and `HiddenServicePort`, uncomment those 2 lines and set them like this:
|
||||||
```
|
```
|
||||||
HiddenServiceDir /var/lib/tor/4get
|
HiddenServiceDir /var/lib/tor/fossq
|
||||||
HiddenServicePort 80 127.0.0.1:80
|
HiddenServicePort 80 127.0.0.1:80
|
||||||
```
|
```
|
||||||
5. Restart the tor service using `service tor restart`
|
5. Restart the tor service using `service tor restart`
|
||||||
6. Wait for a while...
|
6. Wait for a while...
|
||||||
7. Run `cat /var/lib/tor/4get/hostname`. That is your onion address!
|
7. Run `cat /var/lib/tor/fossq/hostname`. That is your onion address!
|
||||||
|
|
||||||
# Specify your own tor address
|
# Specify your own tor address
|
||||||
|
|
|
||||||
BIN
favicon.ico
BIN
favicon.ico
Binary file not shown.
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 4.4 KiB |
|
|
@ -205,7 +205,7 @@ class favicon{
|
||||||
/*
|
/*
|
||||||
Download the favicon
|
Download the favicon
|
||||||
*/
|
*/
|
||||||
//$href = "https://git.bakhai.co.in/assets/img/logo.svg";
|
//$href = "https://git.flossboxin.org.in/assets/img/logo.svg";
|
||||||
|
|
||||||
try{
|
try{
|
||||||
$payload =
|
$payload =
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ class frontend{
|
||||||
|
|
||||||
$this->drawerror(
|
$this->drawerror(
|
||||||
"Tshh, blocked!",
|
"Tshh, blocked!",
|
||||||
'Your browser, IP or IP range has been blocked from this 4get instance. If this is an error, please <a href="/about">contact the administrator</a>.'
|
'Your browser, IP or IP range has been blocked from this FOSS-Q instance. If this is an error, please <a href="/about">contact the administrator</a>.'
|
||||||
);
|
);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
@ -178,7 +178,7 @@ class frontend{
|
||||||
'<ul>' .
|
'<ul>' .
|
||||||
'<li>Use a different scraper</li>' .
|
'<li>Use a different scraper</li>' .
|
||||||
'<li>Remove keywords that could cause errors</li>' .
|
'<li>Remove keywords that could cause errors</li>' .
|
||||||
'<li><a href="/instances?target=' . $target . "&" . $this->buildquery($get, false) . '">Try your search on another 4get instance</a></li>' .
|
'<li><a href="/instances?target=' . $target . "&" . $this->buildquery($get, false) . '">Try your search on another FOSS-Q instance</a></li>' .
|
||||||
'</ul><br>' .
|
'</ul><br>' .
|
||||||
'If the error persists, please <a href="/about">contact the administrator</a>.',
|
'If the error persists, please <a href="/about">contact the administrator</a>.',
|
||||||
$timetaken
|
$timetaken
|
||||||
|
|
@ -1350,7 +1350,7 @@ class frontend{
|
||||||
return htmlspecialchars($image);
|
return htmlspecialchars($image);
|
||||||
}
|
}
|
||||||
|
|
||||||
//return "https://4g.flossboxin.org.in/proxy?i=" . urlencode($image) . "&s=" . $format;
|
//return "https://fossq.com/proxy?i=" . urlencode($image) . "&s=" . $format;
|
||||||
return "/proxy?i=" . urlencode($image) . "&s=" . $format;
|
return "/proxy?i=" . urlencode($image) . "&s=" . $format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
if(!empty($bang)){
|
if(!empty($bang)){
|
||||||
|
|
||||||
// !youtube
|
// !youtube
|
||||||
$conn = pg_connect("host=localhost dbname=4get user=postgres password=postgres");
|
$conn = pg_connect("host=localhost dbname=fossq user=postgres password=postgres");
|
||||||
|
|
||||||
pg_prepare($conn, "bang_get", "SELECT bang,name FROM bangs WHERE bang LIKE $1 ORDER BY bang ASC LIMIT 8");
|
pg_prepare($conn, "bang_get", "SELECT bang,name FROM bangs WHERE bang LIKE $1 ORDER BY bang ASC LIMIT 8");
|
||||||
$q = pg_execute($conn, "bang_get", ["$bang%"]);
|
$q = pg_execute($conn, "bang_get", ["$bang%"]);
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
if(!empty($bang)){
|
if(!empty($bang)){
|
||||||
|
|
||||||
// check if the bang exists
|
// check if the bang exists
|
||||||
$conn = pg_connect("host=localhost dbname=4get user=postgres password=postgres");
|
$conn = pg_connect("host=localhost dbname=fossq user=postgres password=postgres");
|
||||||
|
|
||||||
pg_prepare($conn, "bang_get_single", "SELECT bang,name FROM bangs WHERE bang = $1 LIMIT 1");
|
pg_prepare($conn, "bang_get_single", "SELECT bang,name FROM bangs WHERE bang = $1 LIMIT 1");
|
||||||
$q = pg_execute($conn, "bang_get_single", [$bang]);
|
$q = pg_execute($conn, "bang_get_single", [$bang]);
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,5 @@
|
||||||
|
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow:
|
Disallow:
|
||||||
Host: 4g.flossboxin.org.in
|
Host: fossq.com
|
||||||
Sitemap: https://4g.flossboxin.org.in/sitemap
|
Sitemap: https://fossq.com/sitemap
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
// greppr dev probably monitors 4get code, lol
|
// greppr dev probably monitors fossq code
|
||||||
// hello greppr dude, add an API you moron
|
// hello greppr, add an API
|
||||||
|
|
||||||
class greppr{
|
class greppr{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ class imgur{
|
||||||
|
|
||||||
if(stripos($json["data"]["error"], "capacity")){
|
if(stripos($json["data"]["error"], "capacity")){
|
||||||
|
|
||||||
throw new Exception("Imgur IP blocked this 4get instance or request proxy. Try again");
|
throw new Exception("Imgur IP blocked this FOSS-Q instance or request proxy. Try again");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -390,7 +390,7 @@ class yandex{
|
||||||
$title[0]["innerHTML"] == "403"
|
$title[0]["innerHTML"] == "403"
|
||||||
){
|
){
|
||||||
|
|
||||||
throw new Exception("Yandex blocked this proxy or 4get instance.");
|
throw new Exception("Yandex blocked this proxy or FOSS-Q instance.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// get nextpage
|
// get nextpage
|
||||||
|
|
@ -733,7 +733,7 @@ class yandex{
|
||||||
$json["type"] == "captcha"
|
$json["type"] == "captcha"
|
||||||
){
|
){
|
||||||
|
|
||||||
throw new Exception("Yandex blocked this 4get instance. Please try again in ~7 minutes.");
|
throw new Exception("Yandex blocked this FOSS-Q instance. Please try again in ~7 minutes.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$out = [
|
$out = [
|
||||||
|
|
@ -1013,7 +1013,7 @@ class yandex{
|
||||||
|
|
||||||
if(!isset($json["blocks"])){
|
if(!isset($json["blocks"])){
|
||||||
|
|
||||||
throw new Exception("Yandex blocked this 4get instance. Please try again in 7~ minutes.");
|
throw new Exception("Yandex blocked this FOSS-Q instance. Please try again in 7~ minutes.");
|
||||||
}
|
}
|
||||||
|
|
||||||
$out = [
|
$out = [
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<h1>Set as default search engine</h1>
|
<h1>Set as default search engine</h1>
|
||||||
<a href="#firefox"><h2 id="firefox">On Firefox and other Gecko based browsers</h2></a>
|
<a href="#firefox"><h2 id="firefox">On Firefox and other Gecko based browsers</h2></a>
|
||||||
To set this as your default search engine on Firefox, right click the URL bar and select <div class="code-inline">Add "4get"</div>. Then, visit <a href="about:preferences#search" target="_BLANK" class="link">about:preferences#search</a> and select <div class="code-inline">4get</div> in the dropdown menu.
|
To set this as your default search engine on Firefox, right click the URL bar and select <div class="code-inline">Add "FOSS-Q"</div>. Then, visit <a href="about:preferences#search" target="_BLANK" class="link">about:preferences#search</a> and select <div class="code-inline">FOSS-Q</div> in the dropdown menu.
|
||||||
|
|
||||||
<a href="#chrome"><h2 id="chrome">On Chromium and Blink based browsers</h2></a>
|
<a href="#chrome"><h2 id="chrome">On Chromium and Blink based browsers</h2></a>
|
||||||
Click the 3 superpositioned dots at the top right of the screen and click on <div class="code-inline">Settings</div>, then search for <div class="code-inline">default search engine</div>, or visit <a href="chrome://settings/searchEngines">chrome://settings/searchEngines</a>.<br><br>
|
Click the 3 superpositioned dots at the top right of the screen and click on <div class="code-inline">Settings</div>, then search for <div class="code-inline">default search engine</div>, or visit <a href="chrome://settings/searchEngines">chrome://settings/searchEngines</a>.<br><br>
|
||||||
|
|
@ -24,7 +24,7 @@ Once you're there, click the pencil on the last entry under "Search engines" (it
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>URL with %s in place of query</td>
|
<td>URL with %s in place of query</td>
|
||||||
<td>https://4g.flossboxin.org.in/web?s=%s</td>
|
<td>https://fossq.com/web?s=%s</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
@ -32,15 +32,15 @@ Once that's done, click <div class="code-inline">Save</div>. Then, on the right
|
||||||
|
|
||||||
<h1>Frequently asked questions</h1>
|
<h1>Frequently asked questions</h1>
|
||||||
<a href="#what-is-this"><h2 id="what-is-this">What is this?</h2></a>
|
<a href="#what-is-this"><h2 id="what-is-this">What is this?</h2></a>
|
||||||
<a href="https://git.lolcat.ca/lolcat/4get">4get</a> is a metasearch engine built by <a href="https://lolcat.ca/">lolcat</a>. It retrieves search results from other well known search engines and then strips away all of the tracking parameters that these search engines put in and which are unnessary as-well-as invasive. Most other alternatives to large search engines claim to be "Privacy Respecting" but fail on this promise very badly. The developer, lolcat, was fed up with this situation and decided to build 4get, as other open source alternatives don't live up to their their own goals.
|
<a href="https://git.flossboxin.org.in/FbIN/fossq">FOSS-Q</a> is a metasearch engine built by <a href="https://lolcat.ca/">lolcat</a>. It retrieves search results from other well known search engines and then strips away all of the tracking parameters that these search engines put in and which are unnessary as-well-as invasive. Most other alternatives to large search engines claim to be "Privacy Respecting" but fail on this promise very badly. The developer, lolcat, was fed up with this situation and decided to build FOSS-Q, as other open source alternatives don't live up to their their own goals.
|
||||||
|
|
||||||
<a href="#goal"><h2 id="goal">Goal</h2></a>
|
<a href="#goal"><h2 id="goal">Goal</h2></a>
|
||||||
The goal of 4get is aiming to provide end-users with a privacy-oriented, extremely lightweight, ad-free (free as in freedom)" way to search for documents around the world wide web with mimimal optional JavaScript. The long-term goal would to eventfully get 4get to build it's own and provide users with an unbiased search engine, with no political inclinations.
|
The goal of FOSS-Q is aiming to provide end-users with a privacy-oriented, extremely lightweight, ad-free (free as in freedom)" way to search for documents around the world wide web with mimimal optional JavaScript. The long-term goal would to eventfully get FOSS-Q to build it's own and provide users with an unbiased search engine, with no political inclinations.
|
||||||
|
|
||||||
<a href="#information-sharing"><h2 id="information-sharing">Do you share information with third parties?</h2></a>
|
<a href="#information-sharing"><h2 id="information-sharing">Do you share information with third parties?</h2></a>
|
||||||
Your search queries and supplied filters are shared with the scraper you chose. FbIN 4G does not share anything else like your IP address or location.There is no way for a site to know you're the one searching for the query you put in. FbIN 4G does not and never will serve advertisements or 3rd-party JavaScript applets or trackers on it's instance(s).
|
Your search queries and supplied filters are shared with the scraper you chose. FOSS-Q does not share anything else like your IP address or location.There is no way for a site to know you're the one searching for the query you put in. FOSS-Q does not and never will serve advertisements or 3rd-party JavaScript applets or trackers on it's instance(s).
|
||||||
|
|
||||||
When you submit a search query through 4get, the scraper see's our server as the person sending the search, not you.
|
When you submit a search query through FOSS-Q, the scraper see's our server as the person sending the search, not you.
|
||||||
|
|
||||||
<a href="#hosting"><h2 id="hosting">Where is this website hosted?</h2></a>
|
<a href="#hosting"><h2 id="hosting">Where is this website hosted?</h2></a>
|
||||||
My instance is hosted in Germany.
|
My instance is hosted in Germany.
|
||||||
|
|
@ -54,13 +54,13 @@ When the image viewer is open, you can use the following keybinds:<br>
|
||||||
<div class="code-inline">Escape</div> to exit the image viewer.
|
<div class="code-inline">Escape</div> to exit the image viewer.
|
||||||
|
|
||||||
<a href="#schizo"><h2 id="schizo">How can I trust you?</h2></a>
|
<a href="#schizo"><h2 id="schizo">How can I trust you?</h2></a>
|
||||||
You just sort of have to take my word for it right now. If you'd rather trust yourself instead of me (I believe in you!!), all of the code on this website is available through my <a href="https://git.bakhai.co.in/FbIN/4get/" class="link">git page</a> for you to host on your own machines. Just a reminder: if you're the sole user of your instance, it doesn't take immense brain power for Microsoft to figure out you basically just switched IP addresses. Invite your friends to use your instance!
|
You just sort of have to take my word for it right now. If you'd rather trust yourself instead of me (I believe in you!!), all of the code on this website is available through my <a href="https://git.flossboxin.org.in/FbIN/fossq/" class="link">git page</a> for you to host on your own machines. Just a reminder: if you're the sole user of your instance, it doesn't take immense brain power for Microsoft to figure out you basically just switched IP addresses. Invite your friends to use your instance!
|
||||||
|
|
||||||
<a href="#contact"><h2 id="contact">I want to report abuse through email</h2></a>
|
<a href="#contact"><h2 id="contact">I want to report abuse through email</h2></a>
|
||||||
If you want to talk to me, just drop me an email: dev(at)flossboxin(dot)org(dot)in<br><br>
|
If you want to talk to me, just drop me an email: dev(at)flossboxin(dot)org(dot)in<br><br>
|
||||||
|
|
||||||
<b>Message to all DMCA enforcers:</b> I don't host any of the content. Everything you see here is <u>proxied</u> through my serverbox with no moderation. Please reach out to the people hosting the infringing content instead.<br><br>
|
<b>Message to all DMCA enforcers:</b> I don't host any of the content. Everything you see here is <u>proxied</u> through my serverbox with no moderation. Please reach out to the people hosting the infringing content instead.<br><br>
|
||||||
|
|
||||||
<a href="https://validator.w3.org/nu/?doc=https%3A%2F%2F4g.flossboxin.org.in" title="W3 Valid!">
|
<a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Ffossq.com" title="W3 Valid!">
|
||||||
<img src="/static/icon/w3html.png" alt="Valid W3C HTML 4.01" width="88" height="31">
|
<img src="/static/icon/w3html.png" alt="Valid W3C HTML 4.01" width="88" height="31">
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -23,9 +23,9 @@
|
||||||
<div class="autocomplete"></div>
|
<div class="autocomplete"></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<a href="settings">Settings</a> • <a href="about">About</a> • <a href="https://git.bakhai.co.in/FbIN/4get">Source</a><br>
|
<a href="settings">Settings</a> • <a href="about">About</a> • <a href="https://git.flossboxin.org.in/FbIN/fossq">Source</a><br>
|
||||||
<div class="subtext">
|
<div class="subtext">
|
||||||
<a href="https://4g.flossboxin.org.in">Clearnet</a> • <a href="mailto:dev@flossboxin.org.in">Report a problem</a><br>
|
<a href="https://fossq.com">Clearnet</a> • <a href="mailto:dev@flossboxin.org.in">Report a problem</a><br>
|
||||||
Running on <b>v{%version%}</b>!!
|
Running on <b>v{%version%}</b>!!
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body class="instances">
|
<body class="instances">
|
||||||
<h1>Instance browser</h1>
|
<h1>Instance browser</h1>
|
||||||
Learn how to setup your own instance here! <a href="https://git.bakhai.co.in/FbIN/4get" target="_BLANK">https://git.bakhai.co.in/FbIN/4get</a>
|
Learn how to setup your own instance here! <a href="https://git.flossboxin.org.in/FbIN/fossq" target="_BLANK">https://git.flossboxin.org.in/FbIN/fossq</a>
|
||||||
<noscript>
|
<noscript>
|
||||||
<div class="quote">For a better experience, whitelist javascript usage on this page.</div>
|
<div class="quote">For a better experience, whitelist javascript usage on this page.</div>
|
||||||
<table>
|
<table>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue