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. Link to comment https://forums.phpfreaks.com/topic/41241-solved-two-htaccess-files/ 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 Link to comment https://forums.phpfreaks.com/topic/41241-solved-two-htaccess-files/#findComment-199800 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. Link to comment https://forums.phpfreaks.com/topic/41241-solved-two-htaccess-files/#findComment-199882 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 Link to comment https://forums.phpfreaks.com/topic/41241-solved-two-htaccess-files/#findComment-235853 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.