Created
December 30, 2017 16:08
-
-
Save mucahitnezir/5fea6d2a2e7f336ad4c7a28c1de1069d to your computer and use it in GitHub Desktop.
.htaccess file to block non allowed redirects.
This file contains hidden or 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
<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