Please help to prevent displaying image on web browser
Dear All,
Im looking for how to disable displaying image on web browsers. Example I have a link http://mydomain.com/img/test.jpg. - when I connect to this link on my browser, it will not display the image - But I can use <img src="/img/test.jpg" to websites can read it. I searched on google but I haven't found the solution. Please help me to solve this problem! Thank you so much!! |
For Firefox you can manage the image loading parameter in Edit/Preferences/Content, the Load images automatically box with possible Exceptions... for trusted sites.
|
Uhm, I mean configuration at serverside, not web browser.
Anyway, thanks berbae Can i modify the httpd.conf file with mod_rewrite for this problem? I tried with Code:
RewriteEngine On When I clicked http://mydomain/test.jpg on my webbrowser, it can still show the image!! Please help me... |
Hi,
I'm afraid that what you want to do is not possible. Your rewrite code is for preventing other sites hotlinking to your images, by checking the HTTP_REFERER. When this is your own server that does the request, it should be allowed access to the image, or else it will display a webpage without its images Regards |
Thank you so much for your reply, bathory!
Yes, so can I prevent downloading images in httpd.conf? I don't want use php or javascript because using them make displaying images slower. |
Quote:
Hotlink Protection Tutorial (Apache Server - .htaccess files) http://www.vbulletin.org/forum/showthread.php?t=122057 |
Thanks joec :)
What I'm asking not Hotlink Protection, I just want to protect my images from downloading or copying directly. But this seems impossible. I found a document relate to this problem at http://apache-server.com/tutorials/ATimage-theft.html Thank you so much for helping me. |
Quote:
|
Try blocking *.img jpgs ... with squid.
|
Quote:
If a user can see the image in his browser, he or she can make a copy. Even if you disable right-click on the web page, a user can take a screenshot, crop it down, and recreate the image. The only way to keep others from saving copies of your images is not to put them on the web. If you are so concerned, you might consider putting a watermark directly in the middle of your images before you post them. That won't keep them from being copied, but it will 1) deter lots of folks from wanting them in the first place and 2) ensure that, if someone does take them, others will know where they came from. |
All times are GMT -5. The time now is 08:49 AM. |