php - Is there any way to block image from getting displayed -


here's url http://www.website.com/uploads/pvtimages/image.png

i don't want image displayed anybody, not me can downloaded

i...e <a href="http://www.website.com/uploads/pvtimages/image.png">download</a> i..e specific page (download.php)

i want images in folder protected.

is possible?? using php or .htaccess or both?

i seem answering question lot lately... look, if don't want accessed url, don't need use .htaccess, or php. don't put inside document root @ all.

see my answer here, explains structure should use. can use php download it; answer here explains how download file php. doing things way easier maintain, easier implement , more secure.

note doesn't apply images, etc, php libraries , whatever else. generally, have 1 php file (e.g. index.php) in document root, little bit of css, js , few images. else should somewhere else.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -