How do I block visitors referred by a specific domain?

Add this code to your .htaccess file.

Change input\.com to the domain you're blocking.

You will need a \ before the . RewriteCond %{HTTP_REFERER} input\.com [NC] RewriteRule .* - [F]


Start reseller hosting, pay annually and get 2 month free

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How can I point a second domain name to my website?

You'll need to create a parked domain. You can find a tutorial on how to create a parked domain...

phpMyAdmin access Denied

To fix an "Access Denied" error when trying to launch phpMyAdmin, reset your cpanel password...

How do I setup custom error pages?

Text Version In this tutorial we will be creating a new custom error page. This can be used to...

How do I add a parked domain?

Text Version In this tutorial we will be creating a new parked domain. A parked domain...

How do I use the IP deny manager?

Text Version In this tutorial we will be using the IP deny manager. This allows you to block...