disable rss feeds
This commit is contained in:
parent
705f35f7a6
commit
b0acb14b92
|
@ -92,6 +92,10 @@ async def http_filter(app, handler):
|
|||
real_ip = request.headers.get('X-Real-Ip')
|
||||
ua_ip = dig(ua_domain)
|
||||
|
||||
# Disable rss feeds
|
||||
if request.path.endswith('.rss'):
|
||||
return error(403, 'RSS feeds disabled')
|
||||
|
||||
# add logged in user data to the request for the frontend
|
||||
request['user'] = user_data
|
||||
|
||||
|
|
Loading…
Reference in a new issue