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

Secure certificate error in cPanel

We use a self-signed certificate for cPanel. This will likely cause an error screen to appear...

How do I add an addon domain?

Text Version In this tutorial we will be adding a new addon domain to our account. Start...

Where can I find documentation for cPanel?

Online and downloadable documentation is available in different formats from the following link...

How do I setup URL forwarding?

Text Version In this tutorial we will be adding a new URL forwarder. This is useful if you...