View previous topic :: View next topic |
Author |
Message |
mg66 -
Joined: 15 Aug 2004 Posts: 85 Location: USA, Illinois
|
|
Back to top |
|
 |
pkSML -
Joined: 29 May 2006 Posts: 955 Location: Michigan, USA
|
Posted: Fri Mar 09, 2007 1:34 am Post subject: Re: Denying Domains |
|
|
mg66 wrote: | <Files *.gif>
Order Deny, Allow
Deny from .thoseevilpeople.net
</Files> |
This is a hostname - or reverse DNS address.
You can use PHP in each script you want to have denied by checking the hostname against allowed or denied domains.
Other than with a scripting language, you cannot deny in this fashion with Abyss.
PS Checking a hostname can take place in under a second -- if there IS one. Many IP addresses do not have a reverse DNS, which will halt your server for about 5 seconds just to get a null response or timeout. It would be extremely easy to flood your server with a denial-of-service attack. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Mar 09, 2007 5:41 am Post subject: |
|
|
This feature can easily be added to the "IP Address Controle" feature. All Aprelium needs to do, is allow Hostnames for the Deny/Allow IP Addresses. Now that you mentioned this, I will post this in the "Suggestions for the future" forum. Hopefully in the next version, Aprelium can add this feature.
As for the PHP script, I have that but it won't really do you any good when dealing with GIF files. If you want it, I will post it.
Edit: Have a look at this.
http://www.aprelium.com/forum/viewtopic.php?t=12122 |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Mar 10, 2007 6:36 am Post subject: |
|
|
mg66,
The majority of us don't really need a feature like this. Apache Foundation is stupid for even adding such a feature. A reverse DNS lookup can take a long time for some Hostnames, and if Abyss had to check for every Hostname for every request made, that can slow the server down too much. Let's say you have 5 Hostnames listed in the "IP Address Controle" area. Each IP Address on your server needs to be compared to all five of these Hostnames before they recieve any data from the web server. Imagine if each Hostname took 5 secs to lookup! That would make your website visitors wait 25 secs before they receieve any data.
Now you should have a pretty nice idea why this would be a bad thing. The best thing to do is use a tool to find there "IP Address Range" and block them using that instead.
Such a tool can be found here:
http://www.snapfiles.com/reviews/WhoisView/whoisview.html
Sincerely, Josh (TRUSTAbyss) |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sat Mar 10, 2007 10:33 am Post subject: |
|
|
TRUSTAbyss wrote: | Apache Foundation is stupid for even adding such a feature. |
Microsoft must be stupid, too. Their IIS server also has this feature.  |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sat Mar 10, 2007 10:34 am Post subject: |
|
|
Regarding the lookup, if that server runs its own dns server lookups can take miliseconds, so it wouldn't cause much of a problem. If each lookup took 5ms, then you can easily look up 200 a second. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
pkSML -
Joined: 29 May 2006 Posts: 955 Location: Michigan, USA
|
Posted: Sat Mar 10, 2007 2:46 pm Post subject: |
|
|
Just a little more information to add to the bin...
Hostnames are very quick to lookup. I have a Perl script that checks about 300 hostnames at a time. They will usually zip right through. The requests go to port 53 of my ISP's DNS server (like any other hostname your browser looks up while you're surfing the web).
Some IP addresses do not have a hostname, and they are the ones that can stall for 5 seconds or so. I used to have one of my sites keep the hostname in a counter log, but those IPs without a hostname would not see the rest of the homepage until the counter did its processing, which seems to take forever without a hostname.
Anyways, to make this a usable feature, there would need to be a timeout value that we could set. I think 500ms is reasonable. It would hardly bog down the server.
But the conclusion is this: why do you want this feature, mg66? I've seen thousands of hostnames. Some are based on ISPs. Some are based on companies to whom IP addresses are leased (like a school or company). There is no set naming scheme for hostnames. I don't think there's a set hostname scheme just for hackers (humor...) _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
 |
loloyd -
Joined: 03 Mar 2006 Posts: 435 Location: Philippines
|
Posted: Sun Mar 11, 2007 6:51 pm Post subject: |
|
|
mg66, would you share with us a sample of those domains that you don't want to have access to your GIFs? or maybe you're just looking for the anti-leeching feature? _________________
http://home.loloyd.com/ is online if the logo graphic at left is showing. |
|
Back to top |
|
 |
|