I have a less than legitimate referrer that I fear has the potential to compromise my adsense account and I would like to block any referrals from this site. How can I facilitate this on a site that is based on cpanel/whm?
Referers are hard to deal with because all it takes is for someone to click their address bar & hit enter to bypass anything that can be done efficiently. This will send a 403 Forbidden message to anyone comming from bad-domain.com or any subdomain of bad-domain.com when placed in htaccess, vhost container, etc on alot of setups. RewriteEngine On RewriteCond %{HTTP_REFERER} ^https?://([a-zA-Z0-9-]+\.)*bad-domain\.com RewriteRule ^(.+)$ $1 [forbidden,last] Code (markup):