User Tools

Site Tools


preventing_hotlinking_of_images_by_external_sites

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
preventing_hotlinking_of_images_by_external_sites [2018/03/24 07:29]
matthew [Resources]
preventing_hotlinking_of_images_by_external_sites [2018/03/24 07:36] (current)
matthew [Creating a Whitelist]
Line 143: Line 143:
  
 # Allow search engines. # Allow search engines.
-  RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​google.com [NC]+  RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​google.* [NC] 
 +  RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​bing.* [NC] 
 +  RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​yahoo.* [NC] 
 +  RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​baidu.* [NC] 
 +  RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​naver.* ​[NC]
  
 # Allow social media. # Allow social media.
   RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​facebook.com [NC]   RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​facebook.com [NC]
   RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​twitter.com [NC]   RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​twitter.com [NC]
 +  RewriteCond %{HTTP_REFERER} !^http(s)?://​(www\.)?​pinterest.com [NC]
  
 ... ...
preventing_hotlinking_of_images_by_external_sites.txt · Last modified: 2018/03/24 07:36 by matthew