You are here: how can i hide the path of file so user can not download it directly « All PHP « IT news, forums, messages
how can i hide the path of file so user can not download it directly

Posted by vinaykant.sahu@gmail.com on 10/10/36 11:51

Hello friends,
I am working on a upload and share script and there i am facing a
problem.
Problem is that when i show a file on the view page then any one can ge
the exact path of that file through the view source of the html page.
and he can download that file in easy way by just type that path on
browser.


code is like this

<OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'
width="100" height="50">
<param name='src' value="<? echo
$row_show['path']; ?>">
<param name='autostart' value="true">
<param name='controls' value='imagewindow'>
<param name='console' value='<? echo
$row_show['type']; ?>'>
<param name='loop' value="false">
<EMBED src="<? echo $row_show['path']; ?>"
width="100" height="50"
loop="false" type='audio/x-pn-realaudio-plugin'
controls='imagewindow' console='<? echo $row_show['type']; ?>'
autostart="true">
</EMBED> </OBJECT>


and when it execute then at the place of path it write exact path and
if i dont write then that file should not view :(

can any one help me how can i prevent it.
Thanx in advance

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация