KnowledgeBase Glossary    Contact Us
Browse by Category 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
deny from
allow from all

where and 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

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: 6753   
article How do I block unwanted sites from appearing in my web statistics?
Creating (or adding) the following information...

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

  1-10-2006    Views: 8428   

User Comments

No comments have been posted.

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