1
0
forked from lolcat/4get

ASN whitelisting

This commit is contained in:
cynic
2024-10-11 17:09:21 -04:00
parent 6eabc3edf4
commit 815223b9dc
3 changed files with 72 additions and 8 deletions

View File

@@ -40,6 +40,19 @@ class config{
//["fumo_plushies", 1006],
//["minecraft", 848]
];
// the following refer to ASN whitelisting
// if you enable ASN whitelisting, no other bot protection will be used
// this doesn't work if you put it behind cloudflare
const ASN_WHITELIST = 0;
// the ASNs that should be allowed
const ASN_WHITELIST_LIST = [
//example:
//["1337"]
];
// the whois server to hit up
const WHOIS_SERVER = "whois.cymru.com";
const WHOIS_PORT = 43;
// If this regex expression matches on the user agent, it blocks the request
// Not useful at all against a targetted attack