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

Go to the source code of this file.

Namespaces

namespace  searx
 
namespace  searx.botdetection
 
 

Functions

 searx.botdetection.link_token.is_suspicious (IPv4Network|IPv6Network network, flask.Request request, bool renew=False)
 
 searx.botdetection.link_token.ping (flask.Request request, str token)
 
str searx.botdetection.link_token.get_ping_key (IPv4Network|IPv6Network network, flask.Request request)
 
bool searx.botdetection.link_token.token_is_valid (token)
 
str searx.botdetection.link_token.get_token ()
 

Variables

int searx.botdetection.link_token.TOKEN_LIVE_TIME = 600
 
int searx.botdetection.link_token.PING_LIVE_TIME = 3600
 
str searx.botdetection.link_token.PING_KEY = 'SearXNG_limiter.ping'
 
str searx.botdetection.link_token.TOKEN_KEY = 'SearXNG_limiter.token'
 
 searx.botdetection.link_token.logger = logger.getChild('botdetection.link_token')