Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista wifi windows windows vista windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Ban an IP


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
GentsBabe's Avatar
Senior Member with 308 posts.
 
Join Date: Jan 2006
Location: Canad-eh :)
Experience: Intermediate
19-Feb-2007, 05:50 PM #1
Ban an IP
Is it possible to ban an IP addy from signing guestbook in Geocities?

I've been getting dozens of porn spams in my guestbook per day for the past week . As my site is an all ages accessible site, I'd like this stopped. I've had this site for several years now and never even got this much spam during that whole time put together as I have had lately

I'm assuming that the offensive spammer is one and the same. How do I find out what their IP addy is and how can I block it? Would I be able to log all IP addy's as well?

I've tried to find this out surfing the net, but I'm not sure what I'm looking for, nor do I think I'd know it if I found it. I've no experience in this at all, so I guess you may have to explain it to me like I'm an idiot

Please help
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,192 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
19-Feb-2007, 06:23 PM #2
In a .htaccess file add the following:

Quote:
order allow,deny
deny from ADD_THE_IP_HERE
allow from all
Make sure you add the IP where it's bold

You can get his IP from the raw access logs (if geocities even has those available)
cwwozniak's Avatar
Distinguished Member with 8,225 posts.
 
Join Date: Nov 2005
Location: McHenry, IL - USA
Experience: Enough to be dangerous
20-Feb-2007, 09:39 AM #3
Quote:
Originally Posted by namenotfound
In a .htaccess file add the following
That may not work on Geocities ...

http://www.webmasterworld.com/forum21/7527.htm
Quote:
.htaccess doesnt work with geocities because they dont accept anyfiles starting with a "."
GentsBabe's Avatar
Senior Member with 308 posts.
 
Join Date: Jan 2006
Location: Canad-eh :)
Experience: Intermediate
21-Feb-2007, 03:12 AM #4
Geo doesn't have raw access logs. It says it does, but it's not available on the free or paid versions.

I've considered using a non Geo guestbook where I can log IP's, etc. I did find one that I like, but I don't know what to do with it?!?! There's no ReadMe file to explain, I don't know if it'll even work with Geo and it says it's easy to use

It's called "Tecnixindo's Guest Book 1" and I got it from Download.com

The files are all .php, but what do I do with them, just upload the whole thing to my site? Gah, I feel dumb, I can't figure this out.

*bangs head against wall*
MMJ's Avatar
MMJ MMJ is offline
Distinguished Member with 3,248 posts.
 
Join Date: Oct 2006
21-Feb-2007, 04:24 AM #5
Glad I've never used geo cities.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,192 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
21-Feb-2007, 09:53 AM #6
Quote:
Originally Posted by GentsBabe
Geo doesn't have raw access logs. It says it does, but it's not available on the free or paid versions.

I've considered using a non Geo guestbook where I can log IP's, etc. I did find one that I like, but I don't know what to do with it?!?! There's no ReadMe file to explain, I don't know if it'll even work with Geo and it says it's easy to use

It's called "Tecnixindo's Guest Book 1" and I got it from Download.com

The files are all .php, but what do I do with them, just upload the whole thing to my site? Gah, I feel dumb, I can't figure this out.

*bangs head against wall*
Well Geocities doesn't support PHP.
So if all the files are .php then you'll have to set it up on a different site and embed it into the Geocities site with an <iframe> or <object> (<iframe> is better supported by more browsers)

Besides PHP you'll also need a MySQL database to work that guestbook.
__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
GentsBabe's Avatar
Senior Member with 308 posts.
 
Join Date: Jan 2006
Location: Canad-eh :)
Experience: Intermediate
23-Feb-2007, 08:30 AM #7
Thanks for all your replies

The only other place I have a website at is MSN and as far as I can tell, it doesn't support PHP either.

I've tries surfing around for another guestbook, but no luck. Geo either doesn't support the one's I've found, or they don't have the options for banning that I would like.

I did actually delete all links to my guestbook and I've still gotten 60+ spam I've no idea how to embed or do iframes, so I guess I'm going to end up deleting my guestbook for a while and see what happens after a week or so.

Thanks again everyone
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,192 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
23-Feb-2007, 08:55 AM #8
To do an iframe:

<iframe src="http://your-guestbook-url-here.com" width="400" height="600"></iframe>
sardaukar's Avatar
Junior Member with 18 posts.
 
Join Date: Dec 2006
Experience: Beginner
18-Apr-2007, 09:39 AM #9
Onwe more question about IP ban.
I want to block all trafic to my site from China,Japan,Taiwan and alike (thanks to the hacker/s from these countries). In my site Cpanel, I entered the following in the "IP deny manager":
deny from 58.
deny from 59.
deny from 60.
deny from 61.

and more IPs like these.
The question is: would this work if user from 61.123.456 wants to access my site?
please don't offer to install ANY software - i want to manage all in IP deny manager.
Thanks
Squashman's Avatar
Distinguished Member with 12,689 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Apr-2007, 11:16 AM #10
Quote:
Originally Posted by sardaukar
Onwe more question about IP ban.
I want to block all trafic to my site from China,Japan,Taiwan and alike (thanks to the hacker/s from these countries). In my site Cpanel, I entered the following in the "IP deny manager":
deny from 58.
deny from 59.
deny from 60.
deny from 61.

and more IPs like these.
The question is: would this work if user from 61.123.456 wants to access my site?
please don't offer to install ANY software - i want to manage all in IP deny manager.
Thanks
Rocket Science would probably tell me no. You would think they could also have an Allow feature for certain IP's. But like they have stated above, if your website is hosted on Apache and supports .htaccess files, you can allow and deny IP's in an .htacccess file. No software to install, just a simple file named .htaccess.
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
Squashman's Avatar
Distinguished Member with 12,689 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Apr-2007, 11:18 AM #11
Quote:
Originally Posted by cwwozniak
That may not work on Geocities ...

http://www.webmasterworld.com/forum21/7527.htm
Does Geocities support SSI. You could do it in a javascript if they do.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,192 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
18-Apr-2007, 11:59 AM #12
Quote:
Originally Posted by Squashman
Does Geocities support SSI. You could do it in a javascript if they do.
People could disable Javascript, making it useless
Squashman's Avatar
Distinguished Member with 12,689 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
18-Apr-2007, 12:01 PM #13
Quote:
Originally Posted by namenotfound
People could disable Javascript, making it useless
Yeah! but some script kiddies aren't that smart. They always forget the easy stuff.
sardaukar's Avatar
Junior Member with 18 posts.
 
Join Date: Dec 2006
Experience: Beginner
18-Apr-2007, 12:48 PM #14
And if I enter this "deny from 58.; deny from 59...." in my htaccess file - would user from ANY adress in this zone able to access my site?
cwwozniak's Avatar
Distinguished Member with 8,225 posts.
 
Join Date: Nov 2005
Location: McHenry, IL - USA
Experience: Enough to be dangerous
18-Apr-2007, 04:28 PM #15
Quote:
Originally Posted by sardaukar
And if I enter this "deny from 58.; deny from 59...." in my htaccess file - would user from ANY adress in this zone able to access my site?
I just tested this in cPanel on our hosting service. I went into the IP Deny Manager and added 61. as the only entry in the list. I then looked at the top level .htaccess file for the web site. It contained deny from 61. as an entry.

According to the cPanel documentation, this should block access from all IP addresses starting with 61.

This "APNIC resource ranges" list should let you block the entire Asia Pacific area (unless they are going through a proxy that is not in the banned range):
http://www.apnic.net/db/ranges.html#ranges
__________________
Chuck W.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:47 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.