GithubHelp home page GithubHelp logo

unixfox / antibot-proxy Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 2.0 44 KB

Proxy program designed to combat against basic bots that aren't a full browser.

Home Page: https://hub.docker.com/r/unixfox/antibot-proxy

JavaScript 98.01% Dockerfile 1.99%
bot-detection nodejs proxy

antibot-proxy's People

Contributors

marcabonce avatar unixfox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

hlfh

antibot-proxy's Issues

Only category: General showing results

Hello folks, SOS.

Not sure what I'm messing up in my setup but my SearXNG instance is only showing results for the general category. When I try to search for images, videos, news, etc on the GUI the buttons don't seem to work. Without the antibot-proxy, it works well.

https://searx.syncpundit.com/search?q=groot&language=en-US&time_range=&safesearch=0&theme=simple gives me a

Rate limit exceeded

Here's my config.toml:

COOKIE_NAME = 'searx'
ENDPOINT_NAME = 'searx.css'
HTML_TAG_REPLACE = '(<div id="pagination">)|(<head>)'
JAIL_PATH = '/home/searx-admin/jail'
MAX_RETRY = 5
PORT = 3030
TARGET = '127.0.0.1:4004'
TIMEOUT_LOAD = 120
WHITELIST = ['8.8.8.8', '1.1.1.1', '51.15.252.168']

[WHITELIST_PAGES]
GET = ['^/$', '^/autocompleter(.*)$', '^/favicon.ico$', '^/about$', '^/robots.txt$', '^/opensearch.xml$', '^/searx$']
POST = ['^/preferences$']

If there's anything I can do to help troubleshoot further please let me know

PS: the instance is public, only shared with friends and family

modularity

Separate each protection as a module. This will give the ability to easily add and remove protections in case of #6 for example.
And a dependency system so that a protection can't run before another.

verification page before serving the real content

Similar to the anti DDOS of cloudflare serve a verification page that makes the browser wait based on this method: https://github.com/kkuchta/css-only-chat#receiving-data then add HTML code for verifying if it's a real browser and finally if the browser reach the antibot resource redirect to the real content with a 302 or delete all the HTML code if possible then serve the real HTML content of the program proxied.
Store in a cookie or/and whitelist temporally the IP if it's a real browser.
Or if the client fail multiple times ban it.

community blacklist and whitelist

a community blacklist that everyone can register
and a whitelist enabled by default that everyone can submit
requires a github account to be able to submit to the blacklist and whitelist
blocklist and whitelist enabled by default

level of bot detection

Because #5 is a bit annoying for visitors, introduce a level of bot detection.
Idea of levels of protection:

  • 0 : Detect if it's a bot after serving the real HTML code with a basic bot technique
  • 1 : Detect if it's a bot before serving the real HTML code with a basic bot technique
  • 2 : Detect if it's a bot before serving the real HTML code with an advanced technique like browser fingerprinting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.