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 do I update my password?

Text Version In this tutorial we will be changing our password in cPanel. It is a good idea to...

PhpMyAdmin - Wrong username/password. Access denied.

If you logged in to your control panel but unable to run phpmyadmin and you get this error...

How do I setup hotlink protection?

Text Version In this tutorial we will be setting up hotlink protection. This stops other sites...

How do I create an FTP account?

Text Version In this tutorial we will be creating a new FTP account. This can be used to give...

I can't create a database in phpMyAdmin

Databases need to be created in cPanel. You can then edit your database from phpMyAdmin. For a...