...

View Full Version : is there an HTML code to block 1 specific IP?



cybermom
01-05-2005, 06:36 PM
Hi,
I have a personal family website that is constantly hit by a "stalker" like woman that has been harrassing me via the net for over 2 years now. I would just like to block only her IP form viewing my site. I only know VERY BASIC stuff about websites (I use coolpages to make my site and sometimes edit with frontpage) and it's hosted by doteasy (which on my package doesn't offer htaccess files).

I guess i'm just looking for or wondering if there is a general or basic HTML code that i can put in the head of my pages to deny access to this one IP. I do understand that it would be basic and she maybe able to find away around it, but at this point i just want to try and see if she'll go away!

Any ideas where i can get such a code if there is one?
THanks so much
Cybermom :)

Badman3k
01-05-2005, 06:46 PM
Well unless her IP is static there's not much you can do about it. If it is static and you know it is, then you really need to have a look in the JavaScript board, as pure HTML will be unable to do it alone. This link may help, however it's easy enought to get around http://www.javascriptkit.com/script/script2/blockip.shtml. You should consider using a server-side language as this is more secure :thumbsup:

Hope this helps

chilipie
01-05-2005, 06:58 PM
Couldn't you try and contact her ISP to see if they can do something about it?

cybermom
01-05-2005, 07:40 PM
She's with AOL and i've tried for the past 2 years to get them to do something to no avail...they seem to want to protect their clients rather then the victims of their clients actions...ugh!

Thanks!
Cyber Mom

_Aerospace_Eng_
01-05-2005, 11:08 PM
lol had a problem similar to urs before, i got this persons ip addy, tracked them down to the address they lived on then found the house they lived at, called the police had a detective sent out to this persons house the same day, needless to say the harassment stopped

WA
01-05-2005, 11:41 PM
I'm moving this to Other Server side issues, as blocking IP is best done on the server end. With that in mind, if your server supports .htaccess (just ask your web host), simply add the below code inside one and upload the file to your root web directory:


order allow,deny
deny from 24.35.22.23
allow from all

This should block 24.35.22.23 from your web site. The surfer will see a Permission denied error. For more info on .htaccess, see: http://www.javascriptkit.com/howto/htaccess.shtml

Badman3k
01-06-2005, 09:45 PM
I'm moving this to Other Server side issues, as blocking IP is best done on the server end. With that in mind, if your server supports .htaccess (just ask your web host)

WA, Cyber Mom said in the original post that the server doesn't support htaccess:


it's hosted by doteasy (which on my package doesn't offer htaccess files).

However it is best done in a server side script, as she will be unable to 'switch-off' the blocking system.

Cyber Mom, does your server offer any server side languages, such as PHP, ASP, etc? If not then you will have to use javascript or another client side language (are there any others??:confused: ).

WA
01-07-2005, 12:41 AM
Ah you're right Badman3k, overlooked that part. cybermom, if this is a serious issue, perhaps you should firsr move your site to a hosting package that supports features like .htaccess. JavaScript really isn't suitable for things like IP blocking, since even if it works, you literally have to put the code on every page on your site. And it doesn't really work, since the viewer can always disable JavaScript on his/ her browser, and view the site regardless.

gsnedders
01-07-2005, 12:56 AM
And it doesn't really work, since the viewer can always disable JavaScript on his/ her browser, and view the site regardless.

If someone is stalking over the web the chances are that they'll know howto disable Javascript...

oracleguy
01-07-2005, 08:36 PM
lol had a problem similar to urs before, i got this persons ip addy, tracked them down to the address they lived on then found the house they lived at, called the police had a detective sent out to this persons house the same day, needless to say the harassment stopped

I doubt that is an option, especially these days thanks to the RIAA. You need a court order to get an ISP to give up the owner of an IP at a specific date and time. And that takes a fair ammount of money and time.

Spudhead
01-10-2005, 03:18 PM
If someone is stalking over the web the chances are that they'll know howto disable Javascript...


She's with AOL


That'll be a "no", then ;)

raf
01-10-2005, 03:36 PM
i thought AOL dynamically assigned a new IP to each pagerequest. So it's normally not gonna be a static IP then ...

But i don't realy see the picture here: in what way is she harassing you? spamming your messageboard? sending you spam from a contactpage/link?

_Aerospace_Eng_
01-11-2005, 11:44 AM
lol who said anything about me going through an ISP? just a simple conversation on instant messenger and that was it able to get the ip, then i got down to latitude and longitude and worked from there, hmm and about the .htaccess thing i may look into what few have said, about blocking ip from .htaccess



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum