hosted by liquidweb


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

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
  #1  
Old 07-17-2008, 04:44 AM
gpl24 gpl24 is offline
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 192.168.0.1 single ip (to ban an IP)

Reply With Quote


Sponsored Links
  #2  
Old 07-17-2008, 08:12 AM
webcertain webcertain is offline
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! www.webcertain.com

Reply With Quote
  #3  
Old 07-17-2008, 09:49 AM
Frontpage1 Frontpage1 is offline
Web Hosting Guru
 
Join Date: Dec 2002
Location: USA
Posts: 337

Reply With Quote
Sponsored Links
  #4  
Old 07-17-2008, 01:34 PM
Teslix Teslix is offline
Newbie
 
Join Date: Nov 2007
Location: Europe
Posts: 13
Excellent website, saves time for people trying to block a country

Thanks!

Reply With Quote
  #5  
Old 07-18-2008, 04:37 PM
gpl24 gpl24 is offline
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.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
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
SingleHop Updates Dedicated Servers for Improved Performance Web Hosting News 2013-10-29 15:32:46
OVH Urges Customers to Change Passwords Following Multi-Stage Attack Web Hosting News 2013-07-24 11:17:01
Web Host Milesweb Launches Dedicated Server Hosting in India Web Hosting News 2012-12-31 10:53:51


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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?