.htaccess help

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
ben_b
Forum Newbie
Posts: 2
Joined: Sun Dec 05, 2004 5:18 pm

.htaccess help

Post by ben_b »

Just wondering if there's anyway to do an "Allow from" then get the ip from a file? Like Allow from <?php echo fopen("http://other.bswf.net/ip-*.txt", "r"); ?> although that doesn't work. Any ideas?
Last edited by ben_b on Sun Dec 05, 2004 6:56 pm, edited 1 time in total.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Well you wont be able to with the php syntax as it wont be parsed by PHP. I know that you can use:

Code: Select all

Include file.txt
To add virtual hosts and what not, so you could try that.
ben_b
Forum Newbie
Posts: 2
Joined: Sun Dec 05, 2004 5:18 pm

Post by ben_b »

Unforchunently it says include isn't allowed in the .htaccess file and it doesn't work. :( Any other ideas?
Post Reply