Skip to content

Instantly share code, notes, and snippets.

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 danbeam/981819 to your computer and use it in GitHub Desktop.
Save danbeam/981819 to your computer and use it in GitHub Desktop.
forbid-linking-without-referer.txt
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} \.(?:list|of|file|types)$
RewriteCond %{HTTP_REFERER} !^https?://(?:(?:sub|doms|go|here)\.sites|go|here) [NC]
RewriteRule \.(?:list|of|file|types)$ - [F,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment