Skip to content

Instantly share code, notes, and snippets.

@mucahitnezir
Created December 30, 2017 16:08
Show Gist options
  • Save mucahitnezir/5fea6d2a2e7f336ad4c7a28c1de1069d to your computer and use it in GitHub Desktop.
Save mucahitnezir/5fea6d2a2e7f336ad4c7a28c1de1069d to your computer and use it in GitHub Desktop.
.htaccess file to block non allowed redirects.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} redirectedsiteaddress1\.com [NC,OR]
RewriteCond %{HTTP_REFERER} redirectedsiteaddress2\.com [NC]
RewriteRule .* - [F]
</IfModule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment