Forum Moderators: phranque

Message Too Old, No Replies

Hits, User_Agent and unwanted site

         

Maleville

8:54 am on May 14, 2003 (gmt 0)

10+ Year Member



Hi!
I am very new on this forum and it's my first post.
As you can see I don't handle english very well but I am going to be clear as I can.

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>&nbsp; <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.

Sinner_G

12:18 pm on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Maleville (cool name by the way) and welcome to the boards.

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

Maleville

10:00 pm on May 15, 2003 (gmt 0)

10+ Year Member



Thank you very much Sinner for your quick answer.

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?

Sinner_G

7:22 am on May 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't know how the subdomains are organised at cw.net and I'm not sure how .htaccess handles wildcards, but something like *cwdsl.fr.cw.net might work.

Sinner

Maleville

9:35 pm on May 16, 2003 (gmt 0)

10+ Year Member



DONE!

<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.

Maleville

9:12 am on May 25, 2003 (gmt 0)

10+ Year Member



I am sorry, but my trick doesn't work.
Did I forgot something before or after the script? Are the orders case sensitive?

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>

Maleville

9:14 am on May 25, 2003 (gmt 0)

10+ Year Member



...it is [mydomain.net...] with /c_outils/