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

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

$
0
0

I believe the best method to use would be to create a new .htaccess file in the uploads subdomain folder:  /uploads/.htaccess and add only the hotlink protection code in that .htaccess file with your domain root name whitelisted, which would whitelist all of your domains using the root domain.

Notes:  SetEnvIfNoCase does not work on LiteSpeed servers yet. (LiteSpeed is planning on adding this in version 5.0). You probably will not need to use your server IP address and should leave that commented out with a # sign first. If things are not working then try adding your server IP address and uncommenting Allow from xxx.xxx.xxx.xxx

SetEnvIfNoCase Referer "^(http|https)://.*example\.com.*$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*google.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*yahoo.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*bing.*" whitelist

<FilesMatch "\.(gif|jpg|jpeg|png|bmp)$">
Order Allow,Deny
Allow from env=whitelist
# Add Your Server IP Address
# Note: A Server IP address May be Required for 
# everything to work depending on your Host Server
#Allow from xxx.xxx.xxx.xxx
</FilesMatch>
  • This reply was modified 1 day, 3 hours ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12461

Trending Articles