Forum Moderators: phranque

Message Too Old, No Replies

Reconfigure htaccess to turn off host lookup - how

         

jec2005

11:49 pm on Sep 10, 2005 (gmt 0)

10+ Year Member



Somehow, with a certain "allow from" or "deny from," I got my htaccess file to start doing host lookups. BIG HEADACHE! So then I rewrote and simplified the whole thing so that it looks like this now:

RewriteEngine on
RewriteCond %{REMOTE_ADDR} ^#*$!\.#*$!\.xxx\.
RewriteRule .* - [F]

I'm getting the denials I want, but the server (or is it my htaccess) continues to look up and return the host's name. Why? And how can I stop HostnameLookups?

My problem is that I've got a very important redirect in one of my pages which works according to the reader's IP address, so it's not working.

Any ideas?

Most grateful for this forum, by the way. Thanks.