Orsi Posted July 16, 2007 Share Posted July 16, 2007 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 :-) Link to comment Share on other sites More sharing options...
ripken204 Posted July 16, 2007 Share Posted July 16, 2007 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/ Link to comment Share on other sites More sharing options...
Idontwantspam Posted July 16, 2007 Share Posted July 16, 2007 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? Link to comment Share on other sites More sharing options...
Orsi Posted July 17, 2007 Author Share Posted July 17, 2007 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 Link to comment Share on other sites More sharing options...
Idontwantspam Posted July 17, 2007 Share Posted July 17, 2007 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. Link to comment Share on other sites More sharing options...
electroglyph Posted July 18, 2007 Share Posted July 18, 2007 put this in your .htaccessorder deny,allowdeny from anonymouse.org 85.195.allow from all Link to comment Share on other sites More sharing options...
Orsi Posted July 18, 2007 Author Share Posted July 18, 2007 electroglyph > where I find this file in my web server? Link to comment Share on other sites More sharing options...
electroglyph Posted July 18, 2007 Share Posted July 18, 2007 http://www.javascriptkit.com/howto/htaccess.shtmlcreate 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. Link to comment Share on other sites More sharing options...
Orsi Posted July 18, 2007 Author Share Posted July 18, 2007 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 elsethank you Link to comment Share on other sites More sharing options...
Idontwantspam Posted July 20, 2007 Share Posted July 20, 2007 Well, it's got to be an Apache server, and they have to let you. Some hosting providers don't. Link to comment Share on other sites More sharing options...
Orsi Posted July 20, 2007 Author Share Posted July 20, 2007 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 accountwell, thank you all for the help Link to comment Share on other sites More sharing options...
Idontwantspam Posted July 20, 2007 Share Posted July 20, 2007 (edited) 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 accountwell, thank you all for the helpBULL! Not what you said , what they 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? Edited July 20, 2007 by Idontwantspam Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now