Solved

.htaccess problems with hostnames

Posted on 1997-02-08
1
236 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
1 Comment
 

Accepted Solution

by:
bigboy020797 earned 200 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now