htaccess allow / dent from question

Associate
Joined
27 Jun 2006
Posts
1,473
Afternoon all.

I have a htaccess file with IP addresses being allowed / denied from there.
Is there a way that, if the address is denied, I can redirect the visitor to a certain page whilst the allowed ip address is given access to the things they were after.

Cheers
M.
 
Aye, knew I could do something in PHP but being the lazy git I am was hoping for an easy htaccess trick.

Cheers for confirming the no side of htaccess though...saves me googling till me fingers bleed for much longer!
 
You could use .htaccess to auto prepend a file to check for valid IPs:
php_value auto_prepend_file "start.php"

That way start.php gets called before every page load.
 
Back
Top Bottom