.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
ip_limit.py File Reference

Go to the source code of this file.

Namespaces

namespace  searx
 
namespace  searx.botdetection
 
namespace  searx.botdetection.ip_limit
 

Functions

werkzeug.Response|None searx.botdetection.ip_limit.filter_request (IPv4Network|IPv6Network network, flask.Request request, config.Config cfg)
 

Variables

 searx.botdetection.ip_limit.logger = logger.getChild('ip_limit')
 
int searx.botdetection.ip_limit.BURST_WINDOW = 20
 
int searx.botdetection.ip_limit.BURST_MAX = 15
 
int searx.botdetection.ip_limit.BURST_MAX_SUSPICIOUS = 2
 
int searx.botdetection.ip_limit.LONG_WINDOW = 600
 
int searx.botdetection.ip_limit.LONG_MAX = 150
 
int searx.botdetection.ip_limit.LONG_MAX_SUSPICIOUS = 10
 
int searx.botdetection.ip_limit.API_WINDOW = 3600
 
int searx.botdetection.ip_limit.API_MAX = 4
 
int searx.botdetection.ip_limit.SUSPICIOUS_IP_WINDOW = 3600 * 24 * 30
 
int searx.botdetection.ip_limit.SUSPICIOUS_IP_MAX = 3