Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Closed Thread
 
Thread Tools Rate Thread
Old 08-20-2002, 01:06 AM   PM User | #1
Bashh
New Coder

 
Join Date: Aug 2002
Location: Inside your computer
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Bashh is an unknown quantity at this point
uhm..... blockin tha source code eh?

how?
__________________
Bashh
Master of the floating frame
Bashh is offline  
Old 08-20-2002, 01:07 AM   PM User | #2
The Wizzard
Regular Coder

 
Join Date: Jun 2002
Location: Lake Forest, CA
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
The Wizzard is an unknown quantity at this point
Impossible.
The Wizzard is offline  
Old 08-20-2002, 01:07 AM   PM User | #3
Bashh
New Coder

 
Join Date: Aug 2002
Location: Inside your computer
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Bashh is an unknown quantity at this point
cant be ive seen it done
__________________
Bashh
Master of the floating frame
Bashh is offline  
Old 08-20-2002, 01:13 AM   PM User | #4
Bashh
New Coder

 
Join Date: Aug 2002
Location: Inside your computer
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Bashh is an unknown quantity at this point
Never mind i found it
__________________
Bashh
Master of the floating frame
Bashh is offline  
Old 08-20-2002, 01:15 AM   PM User | #5
The Wizzard
Regular Coder

 
Join Date: Jun 2002
Location: Lake Forest, CA
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
The Wizzard is an unknown quantity at this point
Okay buddy, but there is absolutly positivly NO way to block your source code, unless it is done in a server-side language.

Good Luck!
The Wizzard is offline  
Old 08-20-2002, 01:19 AM   PM User | #6
Bashh
New Coder

 
Join Date: Aug 2002
Location: Inside your computer
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Bashh is an unknown quantity at this point
I knows... and i really meant the right click feature... sorry yall didnt mean to put the rong stuff... anywho is there a way to tell how many right clicks there have been, you know to change your alert or something like that? thanks
__________________
Bashh
Master of the floating frame
Bashh is offline  
Old 08-20-2002, 01:47 AM   PM User | #7
mouse
Regular Coder


 
Join Date: Jun 2002
Location: North East England
Posts: 857
Thanks: 0
Thanked 0 Times in 0 Posts
mouse is an unknown quantity at this point
Quote:
Originally posted by Bashh
I knows... and i really meant the right click feature... sorry yall didnt mean to put the rong stuff... anywho is there a way to tell how many right clicks there have been, you know to change your alert or something like that? thanks
Only with a jedi websever using the hypersnarf anti source codec.

Other than that any source block or no-right click can be circumnavigated in seconds.
__________________
[+] Computer/PC issues [+] Silverpaw3D
------------------------------------------------
Never buy a dwarf with learning disabilities...

...it's not big, and it's not clever.
mouse is offline  
Old 08-20-2002, 01:48 AM   PM User | #8
Bashh
New Coder

 
Join Date: Aug 2002
Location: Inside your computer
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Bashh is an unknown quantity at this point
I know that too lol i just wanted to know HOW to do it.. ya know might be usefull lol
__________________
Bashh
Master of the floating frame
Bashh is offline  
Old 08-20-2002, 02:17 AM   PM User | #9
starglow
New Coder

 
Join Date: Aug 2002
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
starglow is an unknown quantity at this point
I once knew someone with not only a right click proctection script but also disabled view > source and file > edit. is that done on the server? cos no right click is really a waste of time if you can't disable view source and file edit.. and if you could disable those, is there still a way around it?

Last edited by starglow; 08-20-2002 at 02:19 AM..
starglow is offline  
Old 08-20-2002, 02:22 AM   PM User | #10
The Wizzard
Regular Coder

 
Join Date: Jun 2002
Location: Lake Forest, CA
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
The Wizzard is an unknown quantity at this point
No you cannot disable the View > Source option. Atleast as far as client side scripting goes, I am not sure if this could be done with a server-side language, but as far as i know, its impossible.
The Wizzard is offline  
Old 08-20-2002, 02:23 AM   PM User | #11
Zombie
New to the CF scene

 
Join Date: Aug 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Zombie is an unknown quantity at this point
Wanna bet?

enter this script into the head of your document


<SCRIPT LANGUAGE="Javascript"><!--
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS)
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
if(EnableRightClick==1){ return true; }
else {return false; }
}
function mousehandler(e){
if(EnableRightClick==1){ return true; }
var myevent = (isNS) ? e : event;
var eventbutton = (isNS) ? myevent.which : myevent.button;
if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
var myevent = (isNS) ? e : window.event;
if (myevent.keyCode==96)
EnableRightClick = 1;
return;
}
document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
//-->
</script>
Zombie is offline  
Old 08-20-2002, 02:39 AM   PM User | #12
The Wizzard
Regular Coder

 
Join Date: Jun 2002
Location: Lake Forest, CA
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
The Wizzard is an unknown quantity at this point
Okay, wow... That blocks the right click... Okay, so i got to View > Source, and what... WOW its not blocked...

See, you can block the right click, but its impossible to block the View > Source option...

Good Try though
The Wizzard is offline  
Old 08-20-2002, 02:40 AM   PM User | #13
Bashh
New Coder

 
Join Date: Aug 2002
Location: Inside your computer
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Bashh is an unknown quantity at this point
i gots tha same effects
__________________
Bashh
Master of the floating frame
Bashh is offline  
Old 08-20-2002, 04:09 AM   PM User | #14
jscript_junkie
New Coder

 
Join Date: Jun 2002
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
jscript_junkie is an unknown quantity at this point
Just one simple solution that eliminates any kind of protection:

Click Here - Then click on "Show Source"

I'm thinking about putting this in my sig.
jscript_junkie is offline  
Old 08-20-2002, 04:30 AM   PM User | #15
jkd
Super Moderator


 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,168
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
mmm, I have two wonderful bookmarks in Mozilla:

javascript:void(delete document.oncontextmenu);void(delete document.onmousedown);void(delete document.onmouseup);

labelled as "reenable context menu"

And:

javascript:unescape((new XMLSerializer()).serializeToString(document).replace(/</g, '&lt;'))

To get around source code encryption in two clicks.
jkd is offline  
Closed Thread

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:14 PM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.