Forum Moderators: phranque
I have 2 statistics system on my site. One is done by my provider (Webalizer) and the other is a free statistic tool (Weborama).
I have a page named [mydomain...] which show his IP adress to the visitor. It's JavaScript:
<script
language="javascript">
var ip = '<!--#echo var="REMOTE_ADDR"-->'
function ipval() {
document.myform.ipaddr.value=ip;
}
window.onload=ipval
</script> </p>
<form method="post" action name="myform">
<p><strong>Your I.P is :</strong> <input type="text" name="ipaddr"
readonly size="20"> </p>
</form>
For the whole site:
Weborama says that this page has the 26th rank and was visited 290 times in 13 days.
Webalizer says that this page has 3407 hits for this period and is in the 3rd position for the hits and for the Kbytes loaded.
The problem is that I have a lot of visit from ppp1203-cwdsl.fr.cw.net (237 accesses in one day), ppp1597-cwdsl.fr.cw.net (282 accesses in one day), ppp1260-cwdsl.fr.cw.net (140 accesses in one day), ppp1087-cwdsl.fr.cw.net (280 accesses in one day) and so on. All come from pppXXXXcwdsl.fr.cw.net.
For the most of pppXXX visitors, they are visiting my page ip.shtml and nothing more.
I tried to put them away by blocking direct access with this:
<script>
<!--
var validreferrals=new Array()
validreferrals[0]="mydomain.net"
validreferrals[1]="google.fr"
validreferrals[2]="google.com"
validreferrals[3]="voila.com"
validreferrals[4]="voila.fr"
var passed=0
for (r=0;r<validreferrals.length;r++){
if (document.referrer.indexOf(validreferrals[r])!=-1){
passed=1
break
}
}
if (passed==0){
window.location.replace('index.htm')
}
//-->
</script>
and a out of frame code :
<script language="javascript">
<!--
if (top.frames.length!=0) top.location=self.document.location;
//-->
</script>
but they are always visiting my page.
There is not a refresh condition or meta in my page.
My questions are :
- who are those guys and what can they do by visiting my page 200 times a day.
- How can I block those guys?
Thank you by advance if there is a webmaster who can answer to my questions.
cw.net is from Cable & Wireless. As they act as providers, impossible to know exactly who comes to your page. Is this phenomenon new or has it gone on for long?
Now to get rid of them: Do you have access to your web server? If so, just change your htaccess to deny them access to your site.
Sinner
There is 4 mounth long that cw.net is hammering my file.
I puted this .htaccess in the folder where is the file:
<Files c_adresse_ip.shtml>
Order Deny,Allow
Deny from .cw.net
</Files>
For the moment, my site is ok, no blocking. I am going to wait a couple of days to see if this .htaccess is working well. But blockig -cwdsl.fr.cw.net isn't better than blocking cw.net?
<Files c_adresse_ip.shtml>
Order Deny,Allow
Deny from .cw.net
</Files>
is working.
cw.net was rejected and made a 404. As I have a mail which warned me whith details, I found that guys from cw.net are using DirectUpdate (dynamic adress IP) as brownser. I puted it in the .htaccess file with a RewriteCond.
Thank you again. It was a nightmare for severals mounth to find a way to do this trick.
Order Deny,Allow or order deny,allow?
.htaccess (FTP in ASCII, CHMOD 644) and c_adresse_ip.shtml are both in:
[mydomain...]
Lasts version is:
<Files c_adresse_ip.shtml>
Order Deny,Allow
Deny from .cw.net
Deny from .fr.cw.net
</Files>