[paste-web/oscp] Disallow /search, /all and /trending



commit 6646b65bd0e88c7e10402891082708434f1851c2
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Thu Apr 30 12:04:43 2020 +0200

    Disallow /search, /all and /trending

 paste.gnome.org.conf | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/paste.gnome.org.conf b/paste.gnome.org.conf
index 6d6b894a..22e76cd7 100644
--- a/paste.gnome.org.conf
+++ b/paste.gnome.org.conf
@@ -24,7 +24,10 @@
            RewriteCond "%{HTTP_USER_AGENT}" "^omgili"
            RewriteRule . - [F]
 
-           RewriteCond %{REQUEST_URI} "^/api/xml"
+           RewriteCond %{REQUEST_URI} "^/api/xml" [OR]
+           RewriteCond %{REQUEST_URI} "^/search" [OR]
+           RewriteCond %{REQUEST_URI} "^/all" [OR]
+           RewriteCond %{REQUEST_URI} "^/trending"
            RewriteRule ^.*$ - [F,L]
 
            Options Indexes FollowSymLinks


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]