Results 1 to 5 of 5
Thread: Deny server access by *.com
-
07-17-2008, 04:44 AM #1Aspiring Evangelist
- Join Date
- May 2007
- Posts
- 442
Deny server access by *.com
Anyone using APF Firewall:
Is it possible to ban people, similarly to how it can be done in .htaccess?
deny from .ca
= (canada) deny people from isp's using .ca
and so on..
I already achieve this via htaccess, but this doesn't stop the turds from trying to probe my server for root exploits and whatnot. The majority of probes I get are from a certain country extension.
(FYI: I am not looking to ban canada! just using .ca as an example)
........If this can be done, via what command?
Presently I use:
/etc/apf/deny_hosts.rules (bulk edit)
single edit:
apf -d 192.168.0.1 single ip (to ban an IP)
-
07-17-2008, 08:12 AM #2Web Hosting Guru
- Join Date
- Jun 2008
- Location
- UK
- Posts
- 266
no, because you are talking about denying via TLD, which assumes that each IP has a correct and relevant rDNS record assigned, which many do not.
you can ban via IP ranges, but not via their hostnames.WebCertain - SEO, PPC, PR - The services you need to increase your site traffic. Specialists in over 35 languages and country-specific SEO! www.webcertain.com
-
07-17-2008, 09:49 AM #3Web Hosting Guru
- Join Date
- Dec 2002
- Location
- USA
- Posts
- 339
Try this resource http://www.blockacountry.com/
-
07-17-2008, 01:34 PM #4Newbie
- Join Date
- Nov 2007
- Location
- Europe
- Posts
- 13
Excellent website, saves time for people trying to block a country
Thanks!
-
07-18-2008, 04:37 PM #5Aspiring Evangelist
- Join Date
- May 2007
- Posts
- 442
That's a very neat site, thanks.
Not sure how accurate it is though, it's missing several ranges for Canada.