Right clock scripts don't work. You might be able to slow down someone using IE, but if someone cares enough about your page's source to go looking for it, no right-click script is going to stop that person.
All you're doing is forcing people to download needless bytes of information. I'd scrap this idea entirely.
Hey melian. I'm just curious what you're trying to protect. There may be easier ways to protect certain things than blocking right clicking. If you're trying to mask link info there are better ways. If you don't want people stealing content then disabling right click is not the way to go.
Rich WebsiteMaven - Web Hosting Reviews, Guides, and Advice to Build and Promote your Web Site
Originally posted by DevilDog Hey melian. I'm just curious what you're trying to protect. There may be easier ways to protect certain things than blocking right clicking. If you're trying to mask link info there are better ways. If you don't want people stealing content then disabling right click is not the way to go.
I just dont want people to steal content from the site, such as pictures and graphics.
Originally posted by melian9102 I just dont want people to steal content from the site, such as pictures and graphics.
Then don't post it.
Seriously, I'm not at all trying to sound mean - that's really, truly the only way you're going to stop someone from stealing your graphics, and realizing this will end a lot of silly discussions about functionality that doesn't really function right now.
Theoretically, if you wanted to put every possible obstacle in the way of someone trying to steal your images, you'd need to:
1. Disallow all clicking (mouses are configurable, and many people have custom settings on them.
2. Disallow all keystrokes.
3. Attempt to auto-install an executible program that wipes someone's browser cache the moment they opened the folder.
4. Cover all images with a transparent gif/png.
5. Watermark every image, even site layout images (this is a more serious suggestion - you'd be surprised how creative you can get with watermarking if you practice a little).
6. Disable hotlinking and direct image/image folder access.
7. Disable menu functions that allow people to save Web pages.
8. Do all of these things in all known browsers for PC, Mac, Linux, Sun etc.
It's a fool's errand. Concentrate more on choosing your imagery wisely and figuring out ways to make it less appealing to thieves (be creative - you don't have to deface your own graphics to do this), rather than trying to devise ways to break people's computers. That's a battle you'll lose every time!
theres plenty of ways to disable right clicking, but definitely your best bet is to just watermark your images with a site logo or somethin. Any 2-yr old is going to be able to figure out how to steal an image from a disabled right clicker.