Skip to content

Instantly share code, notes, and snippets.

Created August 17, 2016 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2ecf465f6d9214428ef564473f10befc to your computer and use it in GitHub Desktop.
Save anonymous/2ecf465f6d9214428ef564473f10befc to your computer and use it in GitHub Desktop.
# Hotlinking verbieten
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
## Deine Domain einfügen !!!!!!
RewriteCond %{HTTP_REFERER} !^https://(www\.)?democraticpost\.de(/.*)?$ [NC]
RewriteRule \.(jpg|jpeg|gif||png)$ - [F]
</ifModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment