Last active
June 9, 2017 07:09
-
-
Save evemilano/45080e9574702f8944f320cfeb5bb0ac to your computer and use it in GitHub Desktop.
Hotlink - Serve alternate content
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} !^$ | |
# Sostituisci con il tuo dominio | |
RewriteCond %{HTTP_REFERER} !^http://(www\.)example.com/.*$ [NC] | |
# Indica immagine alternativa da mostrare | |
RewriteRule \.(gif|jpg)$ http://www.example.com/angryman.gif [R,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full article: https://www.evemilano.com/2014/11/hotlinking/