Jump to content

Stop direct access, allow script access only.


DanC

Recommended Posts

Hi,

 

I have created a system where a user has to login to view a swf file embedded on a php page. This php page cannot be accessed unless a session is registered. However, I want to stop them just going to:

 

www.example.com/dir/flash.swf

 

I want to prevent direct access to this file and only allow it to be seen when inside a php script. I guess I have to use .htaccess with some combined PHP'ing but i'm not sure how.

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.