Created
September 29, 2016 23:48
-
-
Save mahdiyazdani/f39351c5d693e6cfb019c198291bfdee to your computer and use it in GitHub Desktop.
Disable Hotlinking
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
RewriteEngine on | |
RewriteCond %{HTTP_REFERER} !^$ | |
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yourdomain.com [NC] | |
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment