How do I keep sneaky website users from accessing files directly?
April 6, 2009 7:12 AM
Subscribe
How do I keep sneaky website users from accessing files directly?
I have a site (apache, php, mysql) where users can purchase podcast videos and mp3s. When the user brings up a video page, it checks (via php/mysql) to see if he/she is allowed to view that video. I've had a problem, however, with users viewing the page source and sharing the url of the video file they find there with others. Can I (a) obscure the url using javascript or something so they can't see the actual filename or (b) do something server-side to prevent direct access of the files or (c) something else?
posted by jpoulos to computers & internet (6 comments total)
10 users marked this as a favorite
posted by larsks at 7:15 AM on April 6 [2 favorites]