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.
Whoever you are renting your space from doesn't have a DNS server or is not using it. I'm assuming that you just have some disk space on their server and are not yourself responsible for maintaining the server. You need to ask them about getting DNS or at the very least adding the hostname to address mappings for the hosts that you are interested in using to their local hosts file (the name of the file is "hosts"). If they don't know what you're talking about, then I would suggest getting your space somewhere else because these guys don't know what they're doing. Hope this helps...
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.