> Web Hosting Services
home contact about us sitemap
web hosting service reviews
Web Hosting Services Top Choice
web hosting services

How to block an IP from your server

 

 

 
How to block an IP from your server


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-yo ur-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/ )



About the author:
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/ )

For detailed side-by-side comparisons of web hosting services, see our web hosting services comparison chart .



Web Hosting Services
(listed in order of rank)
#1. HostMonster
#2. BlueHost
#3. StartLogic
#4. Inmotion
#5. midPhase
#6. LunarPages
#7. Apollo Hosting
#8. iPowerWeb
#9. HostRocket
#10. Host Gator
Bookmark / Share



Free Newsletter

Join our free newsletter to be notified when we release updates and new review sites!

Name:


E-mail:


Our privacy policy


Windows Hosting




Related Articles
Different hosting types
Reliability & support
What is shared SSL?
Checking web traffic stats
Which web control panel?
Why avoid free hosting?
Multiple and unlimited domain hosting


More web hosting articles...
Our Review Categories
Antivirus Software
Computer Monitoring Software
Guitar Lessons
Online DVD Rental
Parental Control Software
Privacy Software
Spyware Blocker Software
Web Hosting Services
VoIP Services


More Coming...
Copyright 2008 -- TopChoiceReviews.com | Privacy Policy | Related Sites