javascript - Is there a very effective method to prevent a .jpg file for being copied from a page? -
for instance,
http://www.example.com/picture.jpg
can use .htaccess or javascript picture.jpg can't copied means other users prtscr(pc) or power + volume button(android)?
i want know if it's possible thwart stealing attempts tricks protect pictures on internet.
thanks in advance.
there no way of preventing download completly, since making screenshot (which count kind of download) feature of operating system can not suppressed browser. there no agreement amongst os developers screenshot-prevention-features. moreover, once use image on webpage, downloaded browsers cache when page loaded user and, depending on browser, can freely used copied there.
so short answer question: not possible make pictures "unstealable".
the long answer: there several ways of giving users hard time downloading images. can prevent directory-indexing through .htaccess. or "disable" right-clicking on images through javascript. black-out window when loses focus prevent ui screenshot programs. guess there more possibilities of them have been explained in detail on , other pages.
a bit of creative solution: read image pixel pixel php , create block-element each pixel given pixels color background. anyway, solution consumes lot of servers cpu should follow idea if really need image protected direct download. keep in mind: screenshot still possible.
Comments
Post a Comment