-
Remove the asterisks and have fun! Place this inside of your "head" tags:
<*script language="JavaScript1.2">
if(window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu() {
event.cancelBubble=true
event.returnValue=false;
return false;
}
function norightclick(e) {
if(window.Event) {
if(e.which==2||e.which==3)
return false;
} else if(event.button==2||event.button==3) {
event.cancelBubble=true
event.returnValue=false;
return false;
}
}
document.oncontextmenu=nocontextmenu;
document.onmousedown=norightclick;
<*/script>
-
Thats a pretty neat trick there. I actually might use this one! Thanks!
-
FK Times - Editor in Chief My Good Little Birdie
but couldnt you just go to View > source in ie?
-
No HTML page is entirely liberated from source access.
If you go to View->Source and it's a frameset, just use basic HTML knowledge to figure out which tag to look at: look at the SRC part of the FRAME tag to see what the other pages are.
Then, access it directly.
There is nothing that can stop people from viewing web source hehe... but your code is a good deterrent!
Dan
-
the fun things about stuff like that are you can make really funny pop up messages for when the person right clicks on you...
but as said, if someone really wants a script or image, or anything, they can get it.
-
don't forget about file>save webpage
plus... i have a way of still clicking when people use that code........its my secret.
-
I think I figured that out too, if you hold down the left mouse button or something when you right click it still does the context menu hehe...
That's probably not it but I remember averting that little security trap a while ago
hey riceraver, I guess that means we are "l33t hax0rs!"
Dan
-
FK Times - Editor in Chief My Good Little Birdie
you press enter then right click
-
Ugly with a capitol F
there is no perfect js source blocker, but i've seen some mighty fine ones!
This is one of them!!
-
Another Idea
Just put everything in a seperate swf file on your site, then when they right click, all they get is the flash player menu......I use this to keep ppl from stealing the custom graffix off my business site....only way to get em is to rip the swf open, and not your average lacky knows how to do that....lol
-
especially if you protect it from import with a password!
-
yeah.. that's what i did. Just hold down the left click and then right click. Most people don't think of that. The code doesn't protect against two mouse clicks. I'm not sure if a simple javascript could detect that but it probably could be done.
-
The Mayberry Flasher
just be glad that people can not view asp or php's or things of that nature. it would make the world of web based programming non-existent!
-
yeah how about Microsoft Frontpage? forgot about that? or how about do a Save as under file? lots of different ways to get content off a site.
-
see, what u got to do , is make the page so long no one wants 2 look through it. just put in really long messages with the /* tag and just type crap. i really like to type long messages containing the words "asdf" it seems to detour alot of people from sifting through my wasted time.
-
you can do that but smart people like me will see right through it. Or i can just load the page right into dreamweaver and have it get rid of that useless crap you put in there.
-
This all goes back to the basic principle of the internet:
If you build it, they will hack it.
Or, in this particular situation:
If you try to stop them from hacking it, they will hack it.
Borrrnnngggggg!
-
Is it just me....
It seems Mr. Peter has protected his image....www.nrg.be
The left+right click thingy didn't work, and when you press enter well it just goes to the next page, How would you get that thing? Not that i want to, i was just wondering from all you little Hackers round here...LOL
~Noah
-
I got the script that allows him to do that. Here it is. I can post it here, I think, because it is not NRG's property, but it's DynamicDrive's and it's free.
I'd tell you how I got there, but that might be illegal or something. Let's just say I followed the Frame SRC's.
Code:
<*script language=JavaScript>
<!--
/*
Disable right mouse click Script (By Crash @ http://walk.to/crash)
Submitted to and permission granted to Dynamicdrive.com to feature script in it's archive
For full source code to this script and 100's more, visit
http://dynamicdrive.com
*/
var message="Copyright ©2000 NRG Ltd. - All rights reserved.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
<*/script>
Yes, folks, anybody can get code if they want it.
-
VAlid Arguments all of you - but there are waysd around everything many of you suggested. First off - the script I posted works - I emplore you to try it yourself - now secondly, you can scare off many peons by simply creating a comment in the top of your HTML document and moving your code down about four screens. The average web user will not notice the scroolbar and will be deterred by the phony comment at the top. Make the comment say something stupid like "Protected by HTMl Enforcer, your IP address is being logged" - this sounds stupid to us, but to someone fairly new to the game, they will be shocked.
As for a comment I heard about password protecting SWF movies - that is such a load! There are programs out there that can crack and even bypass such security measures.
No SWF file is safe - your graphics - imported images, sounds effects and even actionscripts can be taken - so dont be so cocky about the safety of your work on the web. Because once you put it online - it's fair game...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|