Msg#: 4545147 posted 2:46 am on Feb 13, 2013 (gmt 0)
I am a noob when it comes to Apache and .htaccess. I know it's easy to setup whitelists/blacklists for specific IPs, but is it possible to have the server do a DNS lookup and only allow a dynamic IP coming from a specific domain such as "myotherplace.dyndns.org" for example?
Msg#: 4545147 posted 12:28 pm on Feb 13, 2013 (gmt 0)
I would recommend against that solution - if you added a DNS lookup for every request that would slow down your server.
I figured that this is not a wise practice, especially for large sites but I simply would like to know if it is possible. If it is possible, I'll consider configuring my server in that manner since I am the only person ever visiting it and all I use it for is a my own personal wiki and testing apache configuration settings.
(I've seen this before but had to double-check. In this particular case the IP address is still extractable, but in some log entries it wouldn't be visible at all. In others it may come out backward. Plays havoc with log processing, anyway.)
Msg#: 4545147 posted 2:51 pm on Feb 13, 2013 (gmt 0)
Actually, I'm referring to what happens if you simply put in a line like
Deny from somename.net
without changing anything else. The moment anything other than a CIDR range appears in your mod_authz list, everything in the server's innards toggles over to Lookup Mode-- which I assume has a technical term that I don't know-- and it stays that way until you hunt down and remove the offending line. Same thing happens if you throw a RegEx into the same list. I remember there was some discussion about this, probably in SSID, but it was a goodish while ago.