Created
April 22, 2016 15:56
-
-
Save Quay3/d7422537ea77c784195b059767edf880 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* hotlink blocking */ | |
RewriteEngine on | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourwebsite.com [NC] | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC] | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?otherapprovedwebsite.com [NC] | |
RewriteRule \.(jpg|jpeg|png|gif)$ - [F] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks Quay. It helps.