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

Replace "" and "" 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:

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: 8309   
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: 8223   
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: 10247   

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