Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: htaccess and php session id
10-12-2004, 05:18 PM #1
- Join Date
- Jun 2002
- London / Glasgow / Liverpool
- Thanked 0 Times in 0 Posts
htaccess and php session id
I am using a php script for a log-in session. Once logged in, it is possible to access a file in a directory named /abc called index.php (i.e. www.domain.com/abc/index.php).
That's great and works just fine.
My problem is that within the directory /abc, there are PowerPoint files which can be downloaded or viewed using the browser (e.g. file.ppt). If just the location of the PowerPoint is entered into the browser address bar, then the user has access to the file, bypassing the php log-in!
How can I protect the PowerPoint files, so that somebody cannot simply type in the URL of the PowerPoint file?
I have been looking at htaccess and its deny function but cannot seem to get it working for this. I have also looked at Hotlink prevention but this fails to work for a URL entered directlyt into the address bar.
Any help would be gratefully received and appreciated.See ya