summaryrefslogtreecommitdiffstats
path: root/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
diff options
context:
space:
mode:
Diffstat (limited to 'server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf')
-rw-r--r--server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf b/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
index 8cb5e37..d08099e 100644
--- a/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
+++ b/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
@@ -64,6 +64,27 @@
AllowOverride None
Options ExecCGI FollowSymlinks
Require all granted
+ #<RequireAll>
+ # Require all granted
+ # Include sites-available/ip-bot-filter-require.conf
+ #</RequireAll>
+
+ RewriteEngine On
+ RewriteBase "/cgit/"
+ RewriteCond %{HTTP_USER_AGENT} Bytespider [OR]
+ RewriteCond %{HTTP_USER_AGENT} Amazonbot [OR]
+ RewriteCond %{HTTP_USER_AGENT} Googlebot [OR]
+ RewriteCond %{HTTP_USER_AGENT} AdsBot-Google [OR]
+ RewriteCond %{HTTP_USER_AGENT} msnbot [OR]
+ RewriteCond %{HTTP_USER_AGENT} AltaVista [OR]
+ RewriteCond %{HTTP_USER_AGENT} CensysInspect [OR]
+ #RewriteCond %{HTTP_USER_AGENT} "=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3963.65 Safari/537.36" [OR]
+ #RewriteCond %{HTTP_USER_AGENT} "=Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.2350.138 Safari/537.36" [OR]
+ #RewriteCond %{HTTP_USER_AGENT} "=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.2671.137 Safari/537.36" [OR]
+ #RewriteCond %{HTTP_USER_AGENT} "=" [OR]
+ RewriteCond %{HTTP_USER_AGENT} Slurp [OR]
+ Include sites-available/ip-bot-filter-rewrite.conf
+ RewriteRule . - [F,L]
</Directory>
<Directory "/srv/www/jogamp.org/git">
Include sites-available/gitweb-to-cgit-rel.conf
@@ -79,6 +100,9 @@
Require all granted
</Directory>
+ Include sites-available/ip-bot-filter-rewrite.conf
+ RewriteRule . - [F,L]
+
#
# Due to security concerns, session hijacking .. etc .. the whole
# bugzilla stream will go over https