mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
fix 404 DDoS
This commit is contained in:
2
YYeTsFE
2
YYeTsFE
Submodule YYeTsFE updated: 2080174a68...52b9770c96
@@ -764,11 +764,10 @@ class BlacklistHandler(BaseHandler):
|
||||
|
||||
class NotFoundHandler(BaseHandler):
|
||||
def get(self): # for react app
|
||||
if self.request.uri not in ["/", "/home", "/discuss", "/login", "/404", "/search",
|
||||
"/resource", "/me", "/database", "help", "/statistics"
|
||||
]:
|
||||
self.ban()
|
||||
|
||||
# if self.request.uri not in ["/", "/home", "/discuss", "/login", "/404", "/search",
|
||||
# "/resource", "/me", "/database", "help", "/statistics"
|
||||
# ]:
|
||||
# self.ban()
|
||||
self.render(index)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user