html - PHP/MySQL Hide file links -


i using php connect mysql database , customers can login website , lists rows form table based on login etc.

i need able display <a href="...."></a> link file name in database don't want users able see link file.

for example, can download file 1234.pdf , if can view actual link, might think of going same location doing file 5678.pdf meant user download.

so want hide link in long string or i'm not sure start - ideas?

thanks

edit:

lets customer logs in, can view rows table1

table1 customer file_link 1234.pdf 5678.pdf b 8765.pdf b 4321.pdf

so, dont want customer able view links customer b.

i mean, if customer hovers on link , can see main file path can type in web browser , change file name (guess it) else , download customers file(s)

if you're planning on not letting others see file links wouldn't want search engines see them well. typical way of forbidding users trying out such stuff have specific page flushes file instead of linking directly file. e.g.,

<a href="download.php?fileid=123">download</a> 

then in download.php check user permissions , make browser download file.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -