PDA

View Full Version : Security


CyberCat
03-24-2003, 09:25 PM
What coding to you have to add to the HTML to make it so when people right-click somewere on you site a message pops up saying somthing like: "Hey! you can't steal my stuff!" or something like that. I've seen it used in some sites but I haven't figured out what the code is. Anyone know what it is?


:boink:

CyberCat
03-24-2003, 09:27 PM
Anyone?

axeman
03-25-2003, 06:18 AM
It's a javascript event. Something like onrightmouseclick or something. Check out the MSDN site.

http://msdn.microsoft.com/library/

BTW, it won't actually stop people "stealing your stuff". It's very easy to get around.

Pol
04-03-2003, 10:59 AM
Hi CyberCat,
Here's a link to one of my fav websites. It's a piece of DHTML code i've used myself which does what you're asking.
Good Luck !!

http://www.dynamicdrive.com/dynamicindex9/noright.htm

bullage
04-07-2003, 03:00 PM
You can also stop it from displaying the alerts/popup message when right clicking, simply by removing the alert="... bit. This means that if somone rightclicks. nothing will happen

M.O.T.E.
05-04-2003, 05:54 AM
What editor are you using. ?

I think there is a oppion in Font Page. for that.

M.O.T.E.
05-04-2003, 05:59 AM
If you use Flash users can not right click to save. But you can always use a capture program to obtain pictures or text. Ifyou realy want to stop anyone from steeling pictures. there are two things you can do.
1. use watermarks on all your pictures.
2. in Flash use about five frames to show a picture, and make 3 of them pitch black. run the frames at a fast speed. this way you always see the picture, but if you use a capture program 9 times out of ten you capture a black frame. CAPESH!

Chivs
05-05-2003, 03:40 PM
Hey CyberCat

Usually this it's a waste of time disabling someones right mouse click and it will really piss some surfers off as you basically disable their right click menu.

It also doesn't sheild your code from surfers who really want to see it. If they want to see your source code they can usually get hold of it. for example: if you disable right click I can still select View/Source on the IE toolbar. If your code is in a frameset determined surfers can track your source cde down.

So my advise would be forget it, you'll just make your pages slower to download. :)