Can We Use PHP Session To Protect Files (Video, PPT, PDF, etc)? -
basically, want protect contents, videos, can watched online. (streaming)
i know whatever can watched can recorded. but, let's put aside first...
what want know is... there mechanism, method or algorithm use php session (username or password) open file stored in specific , hard-to-find folder, though file being stolen, thief won't anything. because don't have php session id (username , password).
and, we're talking here web based environment means i'm not using desktop software protect files.
is possible that?
put file in folder above webroot. instead of accessing movie, have them access php file sends content-type header ,
readfile('path/to/file.movie');
in php file, check authorized session.
Comments
Post a Comment