Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save evemilano/a30ede159b1a3096d7b2 to your computer and use it in GitHub Desktop.

Select an option

Save evemilano/a30ede159b1a3096d7b2 to your computer and use it in GitHub Desktop.
Bloccare hotlinking soltanto da alcuni referrals
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]
@evemilano
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment