hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Deny server access by *.com

Forum Jump

Deny server access by *.com

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Aspiring Evangelist
Join Date: May 2007
Posts: 438

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 single ip (to ban an IP)

Sponsored Links
Web Hosting Guru
Join Date: Jun 2008
Location: UK
Posts: 265
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!

Web Hosting Guru
Join Date: Dec 2002
Location: USA
Posts: 337

Sponsored Links
Join Date: Nov 2007
Location: Europe
Posts: 13
Excellent website, saves time for people trying to block a country


Aspiring Evangelist
Join Date: May 2007
Posts: 438
That's a very neat site, thanks.

Not sure how accurate it is though, it's missing several ranges for Canada.


Related posts from
Title Type Date Posted
Windows Server 2016 Leaks Preview Cloud-Optimized Nano Server Web Hosting News 2015-03-04 12:01:01
Researchers Discover Skeleton Key Malware for Windows Active Directory Systems Web Hosting News 2015-01-14 11:28:48
Pastebin Access Restored in India After Government Censorship Sweep Web Hosting News 2015-01-07 11:57:57
NSA Denies Allegations that it Infected Millions of PCs with Malware Web Hosting News 2014-03-14 11:45:53
Total Server Solutions Buys Its Second Web Host in Three Months: Hands-On Web Hosting Web Hosting News 2014-01-09 11:29:23

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?