Merge "lodgeit: disable getRecent API endpoint"

This commit is contained in:
Zuul 2021-08-05 23:13:47 +00:00 committed by Gerrit Code Review
commit 20cd0910cd

View File

@ -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>