Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12486

Reply To: Hotlink Protection Do Not Block Google, Bing or Yahoo

$
0
0

This is dumbed down hotlink protection code that will work on all servers.  This code is Google, Bing and Yahoo safe hotlink protection.  This code and additional help information will be added to the beginning of this forum topic.

# Hotlink Protection code Dumbed Down to work on all servers:
# Regex ? character & SetEnv directive do not work on some servers
# Forbid empty Referer & all other domains from hotlinking to images
# Except for your domain, google, yahoo or bing domains
# Replace the ait-pro.com domain name with your website domain name 
RewriteCond %{HTTP_REFERER} !^($|(http|https):\/\/.*(ait-pro\.com|google\.com|yahoo\.com|bing\.com)) [NC]
RewriteCond %{REQUEST_URI} ^.*\.(jpeg|jpg|gif|bmp|png)$ [NC]
RewriteRule ^(.*)$ - [F]
  • This reply was modified 4 hours, 20 minutes ago by  AITpro Admin.
  • This reply was modified 4 hours, 17 minutes ago by  AITpro Admin.
  • This reply was modified 4 hours, 16 minutes ago by  AITpro Admin.
  • This reply was modified 4 hours, 14 minutes ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12486

Trending Articles