[snapshot/master] forbid POST requests to snapshot
---
etc/apache.conf | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/etc/apache.conf b/etc/apache.conf
index 3c19de5..161ed95 100644
--- a/etc/apache.conf
+++ b/etc/apache.conf
@@ -18,6 +18,11 @@ WSGIDaemonProcess snapshot.debian.org user=nobody group=nogroup home=/ processes
AliasMatch ^/gits/(.*)$ /srv/snapshot.debian.org/all-git/$1
RewriteEngine on
+
+ # forbid POST requests
+ RewriteCond %{REQUEST_METHOD} POST
+ RewriteRule .* - [F,L]
+
RewriteRule ^/archive/backports.org/(.*) /archive/debian-backports/$1 [L,R]
RewriteRule ^/git/(.*) /gits/snapshot.git/$1 [PT]
--
2.1.4
Reply to: