Baning IP(s)

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Fri Aug 29, 2003 4:29 am    Post subject: Baning IP(s) Reply with quote

I run Abyss on a home w2k pro machine serving up about 60 visitors/350 hits a day. Even though small I have a good positioning for most of my pages on Google and the other major search engines which leads to my problem.

Most robots are considerate and respect the robots.txt file. Two bots, however, continually crawl pages without even reading the robtos.txt file which is set to exclude them. These are grub-clients and various incarnations of ZyBorg. They eat up bandwidth and for the most part don't send any visitors my way.

What I want to be able to do is Ban these bots by IP address(s), but can't figure out how to do it.

Does anyone know of a program, script or method that can be used with Abyss to ban ips? I don't know anything about php and although people have mentioned firewalls being able to ban ips, I can't see any way in the instructions for Zone Alarm to do it.

Thanks
chance
Back to top View user's profile Send private message Visit poster's website
EvaStar
-


Joined: 17 Dec 2002
Posts: 62
Location: Ontario

PostPosted: Fri Aug 29, 2003 6:13 am    Post subject: Reply with quote

The first thing I would suggest chance, is using php in this pages and writing a script that you can use to block these IP's. I will leed you to www.daydreamgraphics.com which will provide you will tutorials on php. It include a tutorial on doing this. When you are first on the site look to the right under tutorials and php you will have to do a little search through the tutorials from there. This will only work with the pages you deside to include this in.
If there is bandwidth error try hotscripts.com or spoono.com, these are the only ways I have found to block things like this with abyss. I know in apache you can add line to the httpd.conf file to block ip's.
If you have a d-link router you can set it to not allow any activity from specified ip's.
I know of no third party programs to help you with this.

Hope this will help you.
Back to top View user's profile Send private message
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Sat Aug 30, 2003 11:12 pm    Post subject: Reply with quote

Thanks EvaStar. Found a couple of php scripts but that is going to involve a lot of learning.

Also found Analog X Port Mapper that says it has the capability to block IP's, but can't get it to work.

The ZyBorg robot from Looksmart crawls my site about every 2 minutes and according to the log doesn't ever call up the robot.txt file.
Back to top View user's profile Send private message Visit poster's website
EvaStar
-


Joined: 17 Dec 2002
Posts: 62
Location: Ontario

PostPosted: Sat Aug 30, 2003 11:17 pm    Post subject: Reply with quote

most robots now don't even look at your meta tags to determine if they are allowed to search or not. But using just the robot.txt file will not work very well.
I suggest that you might want to read the book O-Reily called HTML4.0 it gives alot of info on stopping BOTS.
Back to top View user's profile Send private message
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Sat Aug 30, 2003 11:44 pm    Post subject: Reply with quote

Does the O'Reily cover Windows servers? Most of what I have seen from them is Linux and Apache. I really like the Abyss Server but could sure use an .htaccess type configurable file.

Most of the bots are well behaved and turn off as soon as I update the robots.txt, but not the Looksmart/WISENUT bots, nothing seems to stop them except banning according to what I read on the webmasters world Forum. When I shut down all bots with the robots.txt.:

User-agent:*
Disallow: /

all bot activity (search engine type) Except Zyborg and the various grub-clients ceased. zyborg doesn't even pretend to look at robots.txt, it just pulls up pages. grub-client(s) looks at the robots.txt, ignores the entries, then goes ahead and does its thing anyway. Even slurp obeys the robots file, although it may take a day or two to stop.
Back to top View user's profile Send private message Visit poster's website
Riplin
-


Joined: 11 Jun 2003
Posts: 4

PostPosted: Sun Aug 31, 2003 2:47 am    Post subject: try a router Reply with quote

maybe try buying a router that can ban ip ranges i've seen them for around $50-$100

I use one that can ban ip's
Back to top View user's profile Send private message
ReptileKing234
-


Joined: 14 Apr 2003
Posts: 16

PostPosted: Sun Aug 31, 2003 3:13 am    Post subject: Banning IP's Reply with quote

I also am in dire need to banning an IP. My site is very small, (a lot smaller than what chance's site is) but already I am plagued by someone crashing my servers. I will try to use some of the previous suggestions in order to ban the ip of the person believed to be the hacker, but if anyone else has info, or any way that might be more effective on people than bots, it would be appreciated. Just like chance, I have no knowledge of php, and schooling is taking up most of my time. Thanks for any info.
_________________
ReptileKing234
A voice of reason in a world gone mad
Back to top View user's profile Send private message Send e-mail
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Mon Sep 01, 2003 4:56 am    Post subject: Reply with quote

Thanks all for the suggestions. Am out of town for a week and just wanted to let yu know that I am not ignoring the forum.

Thanks
Chance
Back to top View user's profile Send private message Visit poster's website
s1asher
-


Joined: 20 Mar 2003
Posts: 53

PostPosted: Mon Sep 01, 2003 6:07 pm    Post subject: Re: try a router Reply with quote

Riplin wrote:
maybe try buying a router that can ban ip ranges i've seen them for around $50-$100

I use one that can ban ip's


That or a decent firewall (even a software one) that can block IP addresses. Look about and it could be possible to find a free one that does just that and wash the dishes while it's at it too ;)
Back to top View user's profile Send private message
EvaStar
-


Joined: 17 Dec 2002
Posts: 62
Location: Ontario

PostPosted: Mon Sep 01, 2003 9:08 pm    Post subject: Reply with quote

Since every one has switched to the topic of firewalls and routers I shall suggest the d-link 604. It has 4 port lan access and 1 wan access. Easy to configure, plug in and play, just setup dhcp support under windows, or dhcpcd for linux. Allows the blocking of IP's from internal access to external and external to internal. Works great for blocking sites you don't want children to access as well as sites you don't want guessed that use yous computer(s) to access. Blocks all but the ports you would use to access webpages with before you configure.
I use as a firewall for my server and my families computers.
Back to top View user's profile Send private message
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Mon Sep 15, 2003 12:35 am    Post subject: Re: try a router Reply with quote

Riplin wrote:
maybe try buying a router that can ban ip ranges i've seen them for around $50-$100

I use one that can ban ip's


I have a router. I have a firewall. I have a web server. What I would like to have is a way to ban ip's. My router, Netgear RT311, comes with instructions that are only good for starting a fire. They don't contain one complete instruction to accomplish any task they are addressing.

If you know how to set up a Router filter set I would appreciate it.
Back to top View user's profile Send private message Visit poster's website
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Mon Sep 15, 2003 12:51 am    Post subject: Reply with quote

aprelium

I have been thru the forum again and again looking for an idea concerning banning of ip's and seen the numerous refs to .htaccess. When .htaccess is mentioned the response is Users/Groups/Password Protection. While this looks good for allowing individual access to individual files/folders while blocking the rest of the world, is there anyway of blocking one individual ip while letting the rest of the world in?

Thanks
Chance
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Mon Sep 15, 2003 9:08 am    Post subject: Reply with quote

Instead of using Zonealarm, try using Kerio Personal Firewall - www.kerio.com - it's a *lot* more configurable than Zonealarm's simple "Do you want this to be a server?" crap... You sound like you're techie enough to handle a few more settings :wink:

All it would take is one rule to totally block an IP from accessing your machine. Give me a shout if you decide to install it and I'll point out the rule to set up if you can't figure it out :)
Back to top View user's profile Send private message
chance
-


Joined: 04 Jan 2003
Posts: 27
Location: everett, wa

PostPosted: Mon Sep 15, 2003 9:36 pm    Post subject: Reply with quote

Anonymoose wrote:
Instead of using Zonealarm, try using Kerio Personal Firewall - www.kerio.com - it's a *lot* more configurable than Zonealarm's simple "Do you want this to be a server?" crap... :)


Thank you, Thank you, Thank you! That's the answer. I was beginning to worry about having to go to Apache (ugh) to retake control of the bandwidth I pay for.

Cheers
Chance
Back to top View user's profile Send private message Visit poster's website
stitch
-


Joined: 09 Nov 2003
Posts: 49
Location: washington state

PostPosted: Mon Nov 17, 2003 6:48 am    Post subject: Reply with quote

Is there a free software firewall program that can be configured to ban specific ip's? I'm using zonealarm now...

*huddling at the monitor for warmth and nibbling on stale bread crusts*
Back to top View user's profile Send private message Visit poster's website MSN Messenger
stitch
-


Joined: 09 Nov 2003
Posts: 49
Location: washington state

PostPosted: Mon Nov 17, 2003 7:56 am    Post subject: Reply with quote

oooohkay... found the free kerio firewall... now how to configure to ban ip?
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Mon Nov 17, 2003 10:20 am    Post subject: Reply with quote

You want the older V2.xx Kerio, not the 4.xx one currently offered for free on their site - it doesn't have the same gui, makes it very difficult to find options compared to the previous one. Haven't yet found any IP specific options in it, they seem to have gone for the more cuddly ZoneAlarm approach.

Don't have it installed at the moment, but I'll stick it on my laptop and take some screenshots when I get chance.
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Mon Nov 17, 2003 1:01 pm    Post subject: Reply with quote

Hmm nope, found the options in the new one now. Will knock up some screenshots!
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Tue Nov 18, 2003 2:05 am    Post subject: Reply with quote

Don't have anywhere to put screenshots at the moment... I think I've broken down the description enough to make it simple to work through but if not I can email you the screenshots.

If you have other personal firewall software installed you're going to need to uninstall it to avoid conflicts. I'm going to assume you have some knowledge of how to operate a personal firewall in terms of setting the rest of it up - this is just for banning IP's using Kerio. If you don't, there's a fairly complete help system installed with it to get you started.

1 ) Right click the system tray icon and choose configuration

2 ) Go to the Network Security Tab

3 ) Click Packet Filter

4 ) Click Add

(The Important Bit)

IP Groups are a way of combining all banned IP's into one easy to manage group - you will be able to say Block Banned IP's rather than setting up the whole set of rules individually for however many users you want to ban.

Remember that some users on dialup and DSL/cable may have non static IPs, so blocking a whole group of IP's may be the only way to get rid of them. This means banning the whole subnet of IP's the user might connect from.

For example, if their IP is 10.0.0.3 you would ban 10.0.0.1-10.0.0.254. Do this by selecting Address Range instead of Host in the steps explained below and entering the first and last IP in the range. Only use the range option if you are sure no other users from that range need to connect.

e.g. If you are serving on a LAN and want all LAN users except one IP to be able to access the server, you would use an IP ban, not a range ban. If you are serving over the internet and want to ban one user and don't have logs of any other users from the same range who you still want to allow access to, block the whole range.

5 ) Click IP Groups.

6 ) Click Add and enter a group name such as "Banned Abyss Users". You can leave the description blank or enter extra details here if you want.

7 ) Leave the Type option set to Host and enter the first IP you want to ban here. Click OK.

8 ) For each additional IP you want to ban, click Add, then select the group Banned Users and enter the IP to ban as above. Make sure you select the group banned users or the final steps will not work correctly.

Now you have all the users to ban set up, you are ready to create a banning rule.

9 ) Click Filter Rules, then Add.

10 ) Enter a description for the rule - something appropriate
e.g. Ban Users from Abyss Webserver

11 ) Click Browse and browse to the .exe file for Abyss
e,g C:\Program Files\Abyss Web Server\abyssws.exe on my system.

12 ) Leave the group name as Default, or enter something like Abyss Webserver Rules. All the Group does is group similar rules together, it doesn't affect how the ban will work.

13 ) For protocol, click Add and select TCP, the default.

14 ) If you want to ban the user from your machine completely, not just Abyss, skip this step. Otherwise, in the Local section, click Add and enter the port number your server is running on.

15 ) In the Remote section, click Add, then select IP Group and the group you used to enter the banned users in.

16 ) Select Incoming and Deny from the checkboxes at the bottom of the dialogue.

17 ) If you want a box to pop up when they try to connect, click the "Show Alert to User" box.

18 ) Click OK.

Bingo! You've just blocked all the bad guys from your server :)

To add further banned users in future, follow steps 1-5 and 7. Skip 6.

Hope this helps!


Last edited by Anonymoose on Tue Nov 18, 2003 3:56 pm; edited 1 time in total
Back to top View user's profile Send private message
stitch
-


Joined: 09 Nov 2003
Posts: 49
Location: washington state

PostPosted: Tue Nov 18, 2003 3:45 am    Post subject: Reply with quote

Thanks Anonymoose-- You're the best!

Not only are you super smart but you are really good at explaining things clearly... and I really appreciate your taking the time to go through it step by step!
I have found better support and more useful info here at the Abyss forums than with any other software that I *paid* for...

I'm really happy with the Kerio firewall, too... thanks for letting me know about it! :D
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group