Current User: Guest Login
Please consider registering

Lost Your Password?

Search Forums:


Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

links not allowed to refer to my website

Reply to Post Add a New Topic

8:57 am
September 20, 2007



Hi Jean-Luc,

Great plugin! Keep up the good work mate!

I have a question. Under the “Links from an external page (other websites except search engines)” section I see a web site which is basically not allowed to link or refer to my website (or its content). How can I ban/restrict this site to disallow access to my websites content?

I see something like “” in that section. I have already put a referrer check in my web pages to see if the referrer is that domain and then restrict access, but it doesn’t help. I can still see their daily hits increasing. Btw, I’m using awstats on Windows, and my webpages are in ASP.NET.

Please suggest a good solution to this problem.


9:11 am
September 20, 2007



posts 1125

Hi Nick,

Are you talking about real links to your web site (links that you can see and click on the other web site) or about referrer spamming (links that are only visible in the stats) ?

For a definition of referrer spamming, see Referer spam in Wikipedia.

3:24 pm
September 20, 2007



Hi Jean-Luc,

The web site I see in my referrers (Links from an external page section) does link and use content from my web site, but if I visit their web site I can't seem to find/see a link back to my web site. I guess they are using it in a server script or maybe the link to my site comes up randomly on their web site. But I'm sure that they link to an XML file on my site. So the referrer is valid (not spam), but I don't want them to link to my site. They are using eating up my bandwidth. Please suggest how to ban/bar them.


4:06 pm
September 20, 2007



posts 1125

Sorry, but I do not know how to deal with that in ASP.NET.

Of course, you could give another name to your XML file, but that's probably not the kind of solution you are looking for.


8:06 pm
September 20, 2007



Thanks for your reply.

The language doesn't matter. If you can suggest a solution, I'll be able to translate it to in code.

10:58 pm
September 20, 2007



posts 1125

Do you have this in the AWStats config file :


With this option, you get the complete URL of the referrer including the query after the question mark. This can be very useful when studying some referrers.

You could also create an AWStats extra section to find all referrers for the XML file and another extra section to find the list of hosts (visitors) downloading it. Maybe there will be some interesting information there.

In Apache/Linux systems, there is a special file called .htaccess that can be used to redirect any hit based on the referrer. It works with any file, not only with program files. I don't think that you can mimic that easily with IIS.


8:31 pm
September 27, 2007



I've never tried it, but:

 supposedly mimics mod_rewrite on IIS.


Reply to Post

Reply to Topic:
links not allowed to refer to my website

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
4 + 7

About the Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
5 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2711


There are 257 Members
There have been 304 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)