LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   .htaccess - Dynaimc IP Question (https://www.linuxquestions.org/questions/linux-software-2/htaccess-dynaimc-ip-question-69650/)

anilnatha 07-02-2003 04:55 PM

.htaccess - Dynamic IP Question
 
Ok, here's the deal. I've setup my Red Hat 9.0 box which is running apache 2.0 setup with virtual hosts so that i can work with multiple websites. However, for security reason's i've blocked off everyone from accessing those virutal hosts except for myself and a few others. Those people have static IP's so it's no problem doing an "Allow from ..." within the Directory tag or in the .htaccess.

However, I have a dynamic IP dsl line and i was wondering if there was some way to include what my ip is in the conf file or htaccess as it changes dynamically otherwise i'm going to prompted to enter a username and password to view my own content!

Any ideas?

i'm using dyndns to handle my virtualhost alias along with ddclient to update them with my IP.

infected 07-02-2003 05:49 PM

I might be totally off but have you tried 127.0.0.1 as your IP.

anilnatha 07-03-2003 02:16 AM

127.0.0.1 is typically the IP to self-reference your own computer.

It is not however the IP address of your computer on the network.

The IP on your network is defined to be 192.168.*.* if you have a router and multiple computers within your network. What happens in this case, when i access any site outside of my lan, the IP that other servers see coming to them is the IP of my router which is set by my internet provider dynamically. because of this my IP in the htaccess file is never constant.


All times are GMT -5. The time now is 10:32 PM.