Guest Posted June 4, 2007 Posted June 4, 2007 Hi! I want to sell videos on my store and I am made it that instead of downloading a file it opens the htm or php file. Now I am wondering how to protect may file that the users can only access it from My Account link in the store and not by direct access to it by typing in the url like http://xxxxxxxx/nakup/pub/video.php In the download.php file is $letters = 'abcdefghijklmnopqrstuvwxyz'; $dirname = '.'; $length = floor(tep_rand(16,20)); for ($i = 1; $i <= $length; $i++) { $q = floor(tep_rand(1,26)); $dirname .= $letters[$q]; } return $dirname; That generates virtual directory but if I leave that on then the url is http://xxxxxxxxx/nakup/pub/.qppuxyeqqrtljscq/video.php but it shows me Not Found The requested URL /nakup/pub/.qppuxyeqqrtljscq/video.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. How can i do that the store will generate virtual directory but the system would find the right file but if typed in the url the page wouldn’t be found . I know this is a little confusing but I hope you will understand what I want to say. Thank you in advance
Guest Posted June 4, 2007 Posted June 4, 2007 i create my own download system, where in file like download.php i use header(location: FILE_ADDRESS) and then real file address is not visible.
Guest Posted June 4, 2007 Posted June 4, 2007 i create my own download system, where in file like download.php i use header(location: FILE_ADDRESS) and then real file address is not visible. Can you tell me where to put that string
Guest Posted June 4, 2007 Posted June 4, 2007 just like i sad its my own download system, and i don't want to give it all world.
Guest Posted June 5, 2007 Posted June 5, 2007 Hi!I want to sell videos on my store and I am made it that instead of downloading a file it opens the htm or php file. Now I am wondering how to protect may file that the users can only access it from My Account link in the store and not by direct access to it by typing in the url like http://xxxxxxxx/nakup/pub/video.php In the download.php file is $letters = 'abcdefghijklmnopqrstuvwxyz'; $dirname = '.'; $length = floor(tep_rand(16,20)); for ($i = 1; $i <= $length; $i++) { $q = floor(tep_rand(1,26)); $dirname .= $letters[$q]; } return $dirname; That generates virtual directory but if I leave that on then the url is http://xxxxxxxxx/nakup/pub/.qppuxyeqqrtljscq/video.php but it shows me Not Found The requested URL /nakup/pub/.qppuxyeqqrtljscq/video.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. How can i do that the store will generate virtual directory but the system would find the right file but if typed in the url the page wouldn’t be found . I know this is a little confusing but I hope you will understand what I want to say. Thank you in advance Dose any one know. :'(
Recommended Posts
Archived
This topic is now archived and is closed to further replies.