View Full Version : HTML Code to Disable Printing. Someone help me!
V2.0
February 12th, 2005, 03:32 AM
Does anyone know of a code I could use to disable printing on my website? I have right-clicking disabled, but that is not enough. Someone help plz!
rockboy
February 12th, 2005, 06:20 AM
I don't want to be the bearer of bad news but I think it's a lost cause. If someone can see an image they can get it even if you find a way to disable printing. You aren't the only one who wants to protect their images.
I went to your site and was able to freely rightclick with Firefox, possibly because I have an extension which disables webmasters' attempts to disable functions of my browser. I opened the page in IE and was able to freely rightclick to open my context menu by rightclicking and holding down the right mouse button, clicking your alert "OK" button with the left mouse button, then releasing the right button.
If there was a way to disable context menus, anyone could still take a screenshot and print that.
You might be able to confuse an inexperienced user by making the images a background image in a table cell but that's still not going to stop anyone who really wants them.
da_moma
February 12th, 2005, 01:34 PM
I have something that we use to protect our images better.
We try to insert roll overs so that when they try to save the main image instead they get an image that says "stealing is not Kewl, ask instead."
Just make your roll over image the same size of your main image, it works for us on our sites then most auction site, some auction sites blocks java script now.
But in all honesty if they want the image bad enough they can find a way to get it.
V2.0
February 15th, 2005, 05:27 PM
How would you go about doing that? I am still kinda new to the website developing deal.
Thanx:wave:
renegade600
February 15th, 2005, 08:45 PM
IMO, it is too easy to get a picture or document, there are so many simple ways to get it. Concentrate on the page itself. That said...
The closest I have seen that prevents someone from stealing your picture is by using flash (expensive) or or a flash knockoff - swish (cheap). Screenprints/saves can still be done but that is about all.
da_moma
February 16th, 2005, 02:31 AM
How would you go about doing that? I am still kinda new to the website developing deal.
Thanx:wave:
:wave: V2.0,
I have to agree with renegade600 on this 110%!
But if you are wanting to know the image swap code you can look here at this site:
http://www.codespy.com/javascriptmouseover.html
it has a very simple mouseoever with great instructions.
30111987
February 16th, 2005, 11:36 AM
heres a useful link:
http://www.netmechanic.com/news/vol5/design_no18.htm
jamie.heaney
February 17th, 2005, 06:16 PM
V.2, if you want to look or be experienced, don't bother wasting your time with this junk. da moma's idea can be busted through in a second or two. renegade600 has forgot to mention that there are flash swf decompilers out there. the only people who are going to steal your images are 8th graders doing their school project. But click here (http://www.digitalmidget.com/help/noclick/index.php) for another link to tell you in more detail.
the truth is V.2, way back in the 70's people learned about civil suits and how to sue each other in court, which turned into a disease by the 80's. everyone running around saying mine, mine, mine. and a mine, mine society turns into a fearful, get whats yours, someones out to get me society. as a society we've got to adjust this mentality a bit.
noone's going to steal from you. and if some maddened corporate reality does, you'll be all the richer in the end when you find out. personally i'd be honored that someone stole from me, and a little humored at their laziness.
Sinister-wolf
February 21st, 2005, 12:22 AM
no offence, but anything on your website is 100% grabable
like they said before, disabling rightclick is useless, disabling printing has no point, screenshots, and sourcecodes are very simple to use to get anything.
if its made into a flash there's even programs to disassemble the flash file and rip off sounds, pictures, and text from them (I did that with White Trash Beautiful when it was still on Everlast's flashed website)
again... any information on the internet is free game, as long as its only used for personal uses afterwards.
Steven.Bentley
March 2nd, 2005, 07:02 PM
A colleague of mine was talking about this and I gave him the "anything on the web can be grabbed" reply, he showed me an example he'd set up where whilst the page was open anything you copied (from any application) just put a single 'a' character onto the clipboard. Still trying to work out how that was done... not that I'm encouraging such scripts - I've talked him out of using it!
degsy
March 2nd, 2005, 07:10 PM
but you still have the cache and Save As options.
Also, what if you disable javascript?