Link to home
Start Free TrialLog in
Avatar of linden020797
linden020797

asked on

.htaccess problems with hostnames

I'm renting a commercial web page, and have created an .htaccess file according to the instructions given at NCSA's page on the subject. According to NCSA, you're supposed to be able to deny or allow a visitor based on his/her host name or IP address. I can only get the numeric IP address to work, not the hostname.

Example:

THIS WORKS:

<Limit GET>
order deny,allow
deny from all
allow from 111.222.
</Limit>

THIS DOESN'T WORK (at least not on my host's server):

<Limit GET>
order deny,allow
deny from all
allow from provider.com
</Limit>

I've tried both these examples on another web server and they both work fine, which leads me to believe that it's something in the configuration (or ???) at the site where I'm having the problem.

Thanks in advance for the answer to this!
ASKER CERTIFIED SOLUTION
Avatar of bigboy020797
bigboy020797

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial