SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com KnowledgeBase .: Shared Web Hosting on Plesk Servers .: How can I block traffic from a specific site to one of my sites?

How can I block traffic from a specific site to one of my sites?

You can set up an .htaccess file to deny access from a hostname or an IP address.

Look in your httpdocs folder for a file named .htaccess. If you do not have this file create a file with the name .htaccess with the below information; If you already have a file named .htaccess add this to the bottom of the .htaccess file:

<Limit ALL>
order deny,allow
deny from 12.34.56.78
deny from example.com
allow from all
</Limit>

where 12.34.56.78 and example.com are IPs and/or hostnames you wish to block. You can add additional "deny" lines for sites that you do not want to be able to reach your domain. Place them below the last "deny" line but before the "allow from all" line.

Once you have added all the "deny" lines you need, save or copy the .htaccess file to your httpdocs folder.

For more detailed information on Apache directives see http://httpd.apache.org/docs/2.0/mod/quickreference.html


How helpful was this article to you?

Related Articles

article How do I FTP files to my sites when they all use one IP?
The server will know which site you are...

(No rating)  7-21-2005    Views: 6495   
article How do I block unwanted sites from appearing in my web statistics?
Creating (or adding) the following information...

  11-14-2005    Views: 5559   
article How do I add the Site tab to HSPC?
To install the Workgroup Administrator Control...

  1-10-2006    Views: 8229   

User Comments

No comments have been posted.


.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc.
SimplyWebHosting.com - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted