View unanswered posts | View active topics It is currently Fri Nov 17, 2017 12:52 pm



Reply to topic  [ 1 post ] 
 .htaccess 
Author Message
Junior Member

Joined: Sun Apr 12, 2009 10:38 am
Posts: 1
Post .htaccess
I have a .htaccess file in a directory. I would like to deny access to all files in the directory apart from fpln.php and if the User-Agent matches to the regex below i.e "ASE V1.2" . If I test it, it denies all files in the directory apart from fpln.php regardless of the User-Agent condition. I dont want the fpln.php file to be accessed from a normal internet browser.

Can anybody help?

Many thanks

Craig

Code:
[size=84]Order Deny,Allow
deny from all

BrowserMatch ^ASE V[0-9]+\.[0-9]+$ ase

<Files fpln.php>
allow from env=ase
</Files>

[/SIZE]


Sun Apr 12, 2009 10:47 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.