Internet Web Master Resources

Products

How to block an IP from your server



How to block an IP from your server

By: Bill Holder

If you want to block access to your server for whatever reason, you will need to log into the shell as root. Your server should either have ipchains or iptables to help accomplish this.


In this example, the attacking IP is 192.168.56.210 .


If you are using ipchains, type "ipchains -A input -j DENY -p all -l -s 192.168.56.210/32"


If you are using iptables, type "iptables -A INPUT -s 192.168.56.210/32 -j DROP"


If you just want to block access to one port from an ip :


iptables -A INPUT -s 192.168.56.210/32 -p tcp --destination-port 23 -j DROP


The above would drop all packets from 192.168.56.210/32 to port 23 (telnet) on the server.


Original: http://www.ukwebmasterforums.com/t4927-how-to-block-an-ip-from-your-server.html


Web Hosting UK (http://www.session9.co.uk/ )


Webmaster Forums ( http://www.ukwebmasterforums.com/ )


Web Hosting Affiliate
( http://www.session9.co.uk/web-hosting-affiliate/ )


Domain Reseller (
http://www.domainvendor.co.uk/ )


Web Hosting UK (http://www.session9.co.uk/ )


Webmaster Forums ( http://www.ukwebmasterforums.com/ )


Web Hosting Affiliate
( http://www.session9.co.uk/web-hosting-affiliate/ )



More Webmaster Tools Related Articles...

More Webmaster Tools Related News...
  • Google sharpens malware alerts (InfoWorld)
    ( InfoWorld ) - Google Inc. has enhanced the way it notifies webmasters that their sites contain malware, improving on a service the Mountain View, California, company launched in November of last year in a partnership with The Stop Badware Coalition . Google has begun providing more detailed alerts and to send these notifications via e-mail to webmasters, according to a posting ...
  • Google sharpens malware alerts (InfoWorld via Yahoo! News)
    Google Inc. has enhanced the way it notifies webmasters that their sites contain malware, improving on a service the Mountain View, California, company launched in November of last year in a partnership with The Stop Badware Coalition .

Menu

Home
Webmaster News
Webmaster Articles
Best Web Design Software
REVERSE Search Engine
Webmaster Tools

More Related Resources

In the News

Copyright Items4you.biz, 2006. All rights reserved.