![]() ![]() |
Jul 15 2007, 10:19 PM
Post
#1
|
|
|
Hasta la Windows Vista, baby ![]() ![]() Group: Members Posts: 178 Joined: 9-October 03 From: Sao Paulo Member No.: 7894 OS: Vista Ultimate x64
|
Hey there,
there's some stupid guy (or girl) accessing my site (my blog actually) and posting highly offensive comments. He's doing this for more than a year. I know he's only access my site through www.anonymouse.org, so how can I block his access? Since my site is hosted in a third part server, I can't do anything directly in it, except if I use some javascript code or something. Anybody can help with this code? (This means, tell me exactly how the code must be to work) thanks :-) |
|
|
|
Jul 16 2007, 11:29 AM
Post
#2
|
|
|
The Hardware Guy ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 6144 Joined: 23-December 04 From: Rochester, New York Member No.: 39158 OS: Vista Ultimate x64
|
well either you can manually type in the allowed ip addresses or you can have some sort of a login system.
you can check this out too. http://labs.involutive.com/2007/06/03/php-...g-curl-library/ |
|
|
|
Jul 16 2007, 05:04 PM
Post
#3
|
|
|
Nerd-in-Chief ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1093 Joined: 25-February 07 From: Somewhere Member No.: 128497 OS: Server 2008 x86
|
I don't know about www.anonymouse.org, but I'll assume it hides their IP address. Couldn't you block www.anonymouse.org's IP address? Or his, if possible?
|
|
|
|
Jul 17 2007, 06:45 AM
Post
#4
|
|
|
Hasta la Windows Vista, baby ![]() ![]() Group: Members Posts: 178 Joined: 9-October 03 From: Sao Paulo Member No.: 7894 OS: Vista Ultimate x64
|
Anonymouse IP always start with 85.195. , so I need some script allowing me to block some IP range.
A login system wouldn´t be usefull, since most people don't use them real name on internet forms, except for shopping |
|
|
|
Jul 17 2007, 03:58 PM
Post
#5
|
|
|
Nerd-in-Chief ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1093 Joined: 25-February 07 From: Somewhere Member No.: 128497 OS: Server 2008 x86
|
It would not be very feasible to do that with javascript, and they could disable it anyway. You need to see if there is any way in your web hosting control panel to block IP addresses.
|
|
|
|
Jul 17 2007, 06:54 PM
Post
#6
|
|
|
Newbie Group: Members Posts: 32 Joined: 18-February 07 Member No.: 127284
|
put this in your .htaccess
CODE order deny,allow
deny from anonymouse.org 85.195. allow from all |
|
|
|
Jul 17 2007, 10:59 PM
Post
#7
|
|
|
Hasta la Windows Vista, baby ![]() ![]() Group: Members Posts: 178 Joined: 9-October 03 From: Sao Paulo Member No.: 7894 OS: Vista Ultimate x64
|
electroglyph > where I find this file in my web server?
|
|
|
|
Jul 18 2007, 03:18 AM
Post
#8
|
|
|
Newbie Group: Members Posts: 32 Joined: 18-February 07 Member No.: 127284
|
http://www.javascriptkit.com/howto/htaccess.shtml
create it and place in the root folder of your site(htaccess affects current folder and all subfolders). htaccess is an apache thing, won't work if your site runs on a different webserver. also, your host may not allow you to use .htaccess because it can slow down the server. so you'll want to test whether or not your .htaccess does anything once you upload it. an easy test would be to first try out an ErrorDocument directive. |
|
|
|
Jul 18 2007, 12:27 PM
Post
#9
|
|
|
Hasta la Windows Vista, baby ![]() ![]() Group: Members Posts: 178 Joined: 9-October 03 From: Sao Paulo Member No.: 7894 OS: Vista Ultimate x64
|
tks...
the weird thing is that the password protection worked but IP blocking didn't... I just sent an email to my web provider to check if it uses apache or something else thank you |
|
|
|
Jul 19 2007, 07:33 PM
Post
#10
|
|
|
Nerd-in-Chief ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1093 Joined: 25-February 07 From: Somewhere Member No.: 128497 OS: Server 2008 x86
|
Well, it's got to be an Apache server, and they have to let you. Some hosting providers don't.
|
|
|
|
Jul 19 2007, 08:18 PM
Post
#11
|
|
|
Hasta la Windows Vista, baby ![]() ![]() Group: Members Posts: 178 Joined: 9-October 03 From: Sao Paulo Member No.: 7894 OS: Vista Ultimate x64
|
yeah... I sent them an email asking what to do and they said I isn't possible cos' it would block the access to the whole server, not ownly my account
well, thank you all for the help |
|
|
|
Jul 19 2007, 10:39 PM
Post
#12
|
|
|
Nerd-in-Chief ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1093 Joined: 25-February 07 From: Somewhere Member No.: 128497 OS: Server 2008 x86
|
yeah... I sent them an email asking what to do and they said I isn't possible cos' it would block the access to the whole server, not ownly my account well, thank you all for the help BULL! Not what you said .htaccess files can be placed in any subdirectory and have effect on only that directory. They're either trying to get you to go away, or else thet're not as smart as they think. Even if it's hosted on IIS, it should be possible for them to block a certain IP range for just one directory. EDIT: And besides, why should they care if you block anonymous vandals? Though my above statement could be false if your stuff is in the root directory of the server, but I don't think it would be. Can you tell us what your domain name is and who hosts your blog? This post has been edited by Idontwantspam: Jul 19 2007, 10:43 PM |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 9th January 2009 - 06:31 PM |