htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Multiple htaccess using one IP
PostPosted: 14 Sep 2008 11:44 
Offline

Joined: 14 Sep 2008 11:37
Posts: 1
I'm trying to figure out a method to quickly be able to adjust my IP in my .htaccess files whenever it changes.

For PHP I simply have one file that includes a global that contains my IP. That file is included in any site where I need my IP. That way, when my IP changes, I can simply change it in that file and all my sites are updated at once.

I'm trying to figure out a similar mechanism for .htaccess, but I'm not sure if it's at all possible.

There doesn't seem to be a .htpassword type of file for IP's or allow/deny blocks. There's no space in .htpassword for an IP. The restrictions almost always apply to subdirectories of multiple domains (like stats or admin dirs) so putting an deny all allow from... in my httpd.conf isn't really an option either.

Any help on this matter would be much appreciated :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB