Created
January 27, 2015 13:23
-
-
Save evemilano/a30ede159b1a3096d7b2 to your computer and use it in GitHub Desktop.
Bloccare hotlinking soltanto da alcuni referrals
This file contains hidden or 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 %{REQUEST_FILENAME} -f | |
| RewriteCond %{REQUEST_URI} !/images/alternative-image.jpg$ | |
| RewriteRule \.(jpg|gif|png)$ - [NC,C] | |
| RewriteCond %{HTTP_REFERER} bilderr\.com [NC,OR] | |
| RewriteCond %{HTTP_REFERER} pictures-images\.com [NC,OR] | |
| RewriteCond %{HTTP_REFERER} freeimages-de\.bloggum\.com [NC,OR] | |
| RewriteCond %{HTTP_REFERER} zaggla\.com [NC] | |
| RewriteRule . /images/alternative-image.jpg [T=image/jpg,L] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.evemilano.com/2014/11/hotlinking/