View Full Version : Blocking Domain
The Dawg
07-27-2001, 10:49 PM
I know how to block an IP with .htaccess allow,deny
Can I do the same with a domain?
The Dawg
salsbury
07-27-2001, 11:17 PM
technically yes, but doing so will automatically activate hostnamelookups, which is a very bad thing(tm) for sites with high traffic.
toker
07-28-2001, 12:19 AM
use mod perl and it would be just as good as host deny plus you can refer the traffic to anywhere you want..There are ways to do it with CGI PHP ect.. but mod_rewrite is faster and a very powerful tool.
http://httpd.apache.org/docs/mod/mod_rewrite.html
Most anything dealing with htaccess and apache mods can be found at
http://httpd.apache.org/docs/mod/
toker
07-28-2001, 12:26 AM
<font face="Verdana, Arial" size="2">Originally posted by salsbury:
technically yes, but doing so will automatically activate hostnamelookups, which is a very bad thing(tm) for sites with high traffic.</font>
I dont agree with this and some very big sites make use of these tools. I would only worry if your on a shitty server with low memory but 256mb or better *nix should not be affected much at all even under heavy stress.
A perl module would use much more resources then using the apache mods which is always the better way to go.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.