SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com KnowledgeBase .: Shared Web Hosting on Cobalt Servers .: How do I block unwanted sites from appearing in my web statistics?

How do I block unwanted sites from appearing in my web statistics?

Creating (or adding) the following information to a file named .htaccess can accomplish this. Make sure to have the file name start with a period (but not end with a period or file extension).

<Limit ALL>
order deny,allow
deny from unwantedsite1.com
deny from unwantedsite2.biz
allow from all
</Limit>

Replace "unwantedsite1.com" and "unwantedsite2.biz" with actual site names you see listed in your web statistics that you do not wish to show. Add additional "deny" lines for sites that you do not want to be able to refer to this web page. Place them below the last "deny" line but before the "allow from all" line. You can also block all traffic from an IP address if you replace the domain name with an IP address.

Once the file is created copy the .htaccess file to your httpdocs folder. Make sure to upload the file in ASCII (or text) mode.

For more information on Apache directives see:

http://httpd.apache.org/docs/mod/directives.html

If the unwanted websites are referencing specific web pages you could also rename those web pages to make it more difficult to find your content.


How helpful was this article to you?

Related Articles

article How can I block traffic from a specific site to one of my sites?
You can set up an .htaccess file to deny access...

(No rating)  3-28-2006    Views: 6299   
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: 6163   
article How do I turn on web statistics for OHP or WebPro hosting accounts?
To turn on web statistics for Plesk 7.x (OHP...

  1-4-2006    Views: 7603   

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