mirror of
https://github.com/9001/copyparty.git
synced 2026-03-21 15:43:18 +10:00
improve handling of malicious clients;
* start banning malicious clients according to --ban-422 * reply with a blank 500 to stop firefox from retrying like 20 times * allow Cc's in a few specific URL params (filenames, dirnames)
This commit is contained in:
@@ -109,6 +109,7 @@ class HttpSrv(object):
|
||||
self.g404 = Garda(self.args.ban_404)
|
||||
self.g403 = Garda(self.args.ban_403)
|
||||
self.g422 = Garda(self.args.ban_422, False)
|
||||
self.gmal = Garda(self.args.ban_422)
|
||||
self.gurl = Garda(self.args.ban_url)
|
||||
self.bans: dict[str, int] = {}
|
||||
self.aclose: dict[str, int] = {}
|
||||
|
||||
Reference in New Issue
Block a user