Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

.htaccess problems with hostnames

Posted on 1997-02-08
1
Medium Priority
?
257 Views
Last Modified: 2013-12-16
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!
0
Comment
Question by:linden020797
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
bigboy020797 earned 400 total points
ID: 1811885
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question