update .htaccess and add google and bing to exclude list

This commit is contained in:
Dominic Reich 2023-11-25 22:29:11 +01:00
parent 72241b959b
commit d6a42659e5
Signed by: dominic
GPG key ID: BC9D6AE1A3BE169A

View file

@ -18,6 +18,8 @@ Header set Vary: Origin
RewriteEngine On
RewriteCond %{REQUEST_URI} !hotlinked\.png$
RewriteCond "%{HTTP_REFERER}" "!^$"
RewriteCond "%{HTTP_REFERER}" "!www.google.com"
RewriteCond "%{HTTP_REFERER}" "!www.bing.com"
RewriteCond "%{HTTP_REFERER}" "!oe7drt.com" [NC]
RewriteRule "\.(gif|jpe?g|png)$" "https://oe7drt.com/hotlinked.png" [R,L]