ASN whitelisting
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 cynic
					cynic