Jump to content
xisto Community
Sign in to follow this  
kokushta

Protect images from Right-click No scripts - just a small trick

Recommended Posts

Offen happens to see your images used in someone's website. Here is a little trick how protect them, from the right-click 'Save Image As..'

If you use tables, you can use the 'real' picture as backgroung in a cell and use a 1x1 tranparent GIF to cover it. See the code to understand.

<table width=200><tr><td background=mypic.jpg width=100><img src=spage.gif width=100 height=120</td><td width=100></td></tr><tr><td width=100></td><td width=100></td></tr></table>

Share this post


Link to post
Share on other sites

So the way i understand it is, when the user right-click and goes to save as they will be saving the transparent gif rather than the main image. If so that is a novel idea, you come up with it yourself?Although if someone wants it bad enough they will just screen print it. Unless you get software to stop that which i know is available.

Share this post


Link to post
Share on other sites

Hmm... is there anyone to protect other people from looking at directories and only let that page access it? Someone could view the source and find the directory the picture is located in. Yeah and that print screen is a way around it. I believe there's a watermarking program that makes a big watermark on the picture if you use print screen.

Share this post


Link to post
Share on other sites

Anyone who is smart can look at your source and get the image from that. There is no way to prevent it. Besides, people have to download your images to their computer anyway in order to view them in the first place - its just that their browser does it for them transparently.Personally, I think the concerns about people stealing your images are a waste of time. If you are really worried about people stealing your data, don't put it on the Internet! Once your data is on the web, it is fair game for everyone. That's just the way things are.

Share this post


Link to post
Share on other sites

If you really wanna try to stop it create a perl script that checks referrer, if referrer is your site then print image if not then print a picture that says "Create your own pictures.". If you want an example perl script pm me. I would have to dig it up.

Share this post


Link to post
Share on other sites

So the way i understand it is, when the user right-click and goes to save as they will be saving the transparent gif rather than the main image. If so that is a novel idea, you come up with it yourself?

 

Although if someone wants it bad enough they will just screen print it. Unless you get software to stop that which i know is available.

<{POST_SNAPBACK}>


Yes, that would be the point.

 

This fact I read it in a magazine or maybe in an e-zine, as the main aim of this forum is to share, thought it would be a good thing for others to know.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.