Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-12-2004, 05:18 PM   PM User | #1
ivy
Regular Coder

 
Join Date: Jun 2002
Location: London / Glasgow / Liverpool
Posts: 177
Thanks: 1
Thanked 0 Times in 0 Posts
ivy is an unknown quantity at this point
htaccess and php session id

Hi there

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!

E.g. www.domain.com/abc/file.ppt

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

Ivy.

OrangeProblems
ivy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:27 AM.


Advertisement
Log in to turn off these ads.