DanC Posted October 10, 2009 Share Posted October 10, 2009 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. Link to comment https://forums.phpfreaks.com/topic/177189-stop-direct-access-allow-script-access-only/ Share on other sites More sharing options...
Garethp Posted October 10, 2009 Share Posted October 10, 2009 Try this http://corz.org/serv/tricks/htaccess.php Link to comment https://forums.phpfreaks.com/topic/177189-stop-direct-access-allow-script-access-only/#findComment-934261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.