Azu Posted March 5, 2007 Share Posted March 5, 2007 I want to use .htaccess for banning IPs but I want to keep two separate groups of IPs split into 2 .htaccess files is this possible? I want 1 for IP that were manually banned and one for IPs that were automatically banned. And if it is possible please tell me how I can get started ^^ (basically I need each folder to have 2 .htaccess files and each .htaccess file should effect the folder it is in and all of its sub folders) It doesn't matter to me what they are named. Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted March 5, 2007 Share Posted March 5, 2007 I don't think you can have two .htaccess files. Why not create the file from PHP, and use PHP to read all the settings from a DB table (or something) Then when the user updates the DB you recreate the .htaccess file. monk.e.boy Quote Link to comment Share on other sites More sharing options...
superuser2 Posted March 5, 2007 Share Posted March 5, 2007 You can't do that with .htaccess. Do they need to be separate files? You could just put in a few returns to seperate the groups. Quote Link to comment Share on other sites More sharing options...
Azu Posted April 23, 2007 Author Share Posted April 23, 2007 Okay.. I'll try that.. thanks for the suggestion Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.