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 add an auto responder?

Text Version In this tutorial we will be creating a new autoresponder. Begin by clicking the...

How do I create a backup?

Text Version In this tutorial we will be creating a backup of our site. It is a good idea to...

How do I create a cron job in cPanel?

You can set the cron job in the cpanel using the following instructions. To access the Cron...

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 add an email forwarder?

Text Version In this tutorial we will be setting up an email forwarder. This is used to...