BRK Brandon Posted December 23, 2016 Share Posted December 23, 2016 Hi all, We're experiencing issues with people from a malicious website linking to us and sending malicious traffic to us. We want to redirect them to a legal disclaimer page. So any referral links to our site from their site that are clicked on via their site would be taken to the legal disclaimer page. I have another personal website which I can use to test such a rule in .htaccess but unfortunately I am failing to get it to work. Current .htaccess: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase /~bayour8/ RewriteCond %{REQUEST_FILENAME} .*\.(jpeg|jpg|gif|png)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . /~bayour8/public/404.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /~bayour8/index.php [L] #suPHP_ConfigPath /home/bayour8/public_html </IfModule> I am trying to add the following where domainx would be the referring (malicious) domain and domainy is our domain/website: RewriteCond %{HTTP_REFERER} ^http://.*domainx.*$ [NC] RewriteRule .* http://www.domainy.com/disclaimer/ [L] When I use my personal website and put it's domain name for domainx though and put links for it to our website domainy, I am not redirected. It's as if the referer rule is being completely ignored. Any ideas? Note: I have tested the above rule between two other domains I own and can get it to work fine. Link to comment Share on other sites More sharing options...
BRK Brandon Posted December 28, 2016 Author Share Posted December 28, 2016 Any ideas anyone? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.