Created
June 25, 2018 06:14
-
-
Save Faz95210/339a12dd798a7df68635a032ef77db88 to your computer and use it in GitHub Desktop.
[Prevent direct url to pictures] Stop users to use direct url to see pictures. #htaccess #web #permissions
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} !^http://(www\.)?10.0.1.19 [NC] | |
RewriteCond %{HTTP_REFERER} !^http://(www\.)?10.0.1.19.*$ [NC] | |
RewriteRule \.(gif|jpg|png|pdf)$ - [F] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment