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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I create my own custom 404 error pages on a RAQ?

First, you will need to create your custom error page and name it 404.html (or 404.php, etc.)....

Can I disable PHP safe mode on a Cobalt account?

The Cobalt accounts are on a shared server. For security reasons we cannot disable php safe...

Why can't I change my FrontPage username?

All sites on our Cobalt RaQ4 servers must use the username "webmaster" for FrontPage, and a...

Powered by WHMCompleteSolution