lodgeit: disable getRecent API endpoint
This appears to give a unicode error; but also looking at the access patterns it seems to serve no good purpose but to be a target for bots and other odd behaviour. Block it from apache. Change-Id: I3a9d4a0161eef34ffe39cf4feb9ab2af561684ca
This commit is contained in:
parent
9a5253a4e1
commit
b1cf281208
@ -37,6 +37,14 @@
|
||||
ProxyPass / http://localhost:9000/ retry=0
|
||||
ProxyPassReverse / http://localhost:9000/
|
||||
|
||||
# NOTE(ianw) 2021-08-04 : block GET /json/?method=pastes.getRecent
|
||||
# This a) gives Python 3 unicode errors we haven't looked into and b)
|
||||
# is only used by bots as a vector for scraping things. Just
|
||||
# disable it.
|
||||
RewriteEngine On
|
||||
RewriteCond %{QUERY_STRING} "method=pastes.getRecent"
|
||||
RewriteRule .* - [F,L]
|
||||
|
||||
<Location "/robots.txt">
|
||||
ProxyPass !
|
||||
</Location>
|
||||
|
Loading…
x
Reference in New Issue
Block a user