oe7drt-website/static/.htaccess

16 lines
466 B
ApacheConf
Raw Normal View History

Header set Access-Control-Allow-Origin: https://oe7drt.com
Header set Vary: Origin
RewriteEngine On
RewriteCond %{REQUEST_URI} !hotlinked\.png$
RewriteCond "%{HTTP_REFERER}" "!^$"
RewriteCond "%{HTTP_REFERER}" "!oe7drt.com" [NC]
RewriteRule "\.(gif|jpg|png)$" "https://oe7drt.com/hotlinked.png" [R,L]
#SetEnvIf Referer "oe7drt\.com" localreferer
#SetEnvIf Referer ^$ localreferer
#<FilesMatch "\.(jpg|png|gif)$">
# Require env localreferer
#</FilesMatch>