Block IP Addresses With IPtables & APF
Have a user that keeps hammering your FTP or trying to login over and over and over again that you just want to ban and never see again? We’ll show a quick and dirty method to ban an IP address from the server.
We commonly receive questions like:
“I would like to ban that ip address to prevent the access to the server.
how can i ban that Ip address from the server?”
Simple !
Login to the server as root.
- If you are running iptables, you can enter:
iptables -A INPUT -s IP_ADDRESS -j DROP
Ex: Block IP 68.72.72.25
iptables -A INPUT -s 68.72.72.25 -j DROP
IP country block downloads
All country IP block files are provided in CIDR format, at this time. Please note that we compile these lists from regional IP space providers. To correct any errors please contact your local IP space provider e.g. for Europe it’s Ripe, for North America it’s Arin.
Zone files last updated: Mon Jun 15 05:07:15 EDT 2009
Download compressed tar archive with all zone files in it: all-zones.tar.gz
Read more…
.Htaccess IP Banning IP Block Bad Visitors
Increase your web site’s security by blocking bad visitors with .htaccess. If you have nuisance visitors, site scrapers, or spammers, you may want to add some lines of code to your .htaccess file that will block bad visitors by IP address or by blocks of IP addresses. You want to be careful though that you don’t ban blocks of IPs carelessly as you may end up banning potential customers or other valid site visitors. Also, nothing is completely foolproof as the user can always use another IP address, but I’ve found that this does reduce the number of troublesome incidents.
Secure Directories by IP Address and/or Domain
# allow all except those indicated here
order allow,deny
allow from all
deny from 190.115.67.200
deny from .*yourdomain\.com.*
Read more…
How to find out what others site are hosted on your shared hosting server
by Tweak on June 12, 2009
in Domain/Hosting
Ever want to know who else is sharing your IP address on the internet ?
Sometimes thousands of sites are utilizing the same IP Address, and if one gets blacklisted it could potentially affect your site.
Although most shared hosting providers do a good job of keeping the bulk of their customers off of black list, you should know who your “IP neighbors” are.
Read more…