.oO SearXNG Developer Documentation Oo.
|
Functions | |
regexp_user_agent () | |
werkzeug.Response|None | filter_request (IPv4Network|IPv6Network network, flask.Request request, config.Config cfg) |
Variables | |
tuple | USER_AGENT |
_regexp = None | |
Method ``http_user_agent`` -------------------------- The ``http_user_agent`` method evaluates a request as the request of a bot if the User-Agent_ header is unset or matches the regular expression :py:obj:`USER_AGENT`. .. _User-Agent: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
werkzeug.Response | None searx.botdetection.http_user_agent.filter_request | ( | IPv4Network | IPv6Network | network, |
flask.Request | request, | ||
config.Config | cfg ) |
Definition at line 57 of file http_user_agent.py.
References searx.botdetection.http_user_agent.regexp_user_agent().
searx.botdetection.http_user_agent.regexp_user_agent | ( | ) |
Definition at line 50 of file http_user_agent.py.
Referenced by searx.botdetection.http_user_agent.filter_request().
|
protected |
Definition at line 47 of file http_user_agent.py.
tuple searx.botdetection.http_user_agent.USER_AGENT |
Definition at line 30 of file http_user_agent.py.