Current location: Hot Scripts Forums » General Web Coding » JavaScript » disable view souce?


disable view souce?

Closed Thread
  #11 (permalink)  
Old 12-01-04, 11:20 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
or type javascript:window.open().document.write(document.g etElementsByTagName('html')[0].outerHTML) in the url field... took just a few seconds to break it...
Don't know how it's done, try asking them lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #12 (permalink)  
Old 12-01-04, 08:22 PM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by chriswatts
Can't seem to disable the view source command but while looking to see how other sites that use the same web server as me have linked back to the server I noticed this site seems to have found a way of returning a warning message instead of the main site code. Don't know how they did it.
Haha.. yes, a clever plan, but it's been done before.

Hint: open the source code again. Ignore the warning. Scroll DOWN.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #13 (permalink)  
Old 12-02-04, 07:28 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Haha! How could I have missed that
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #14 (permalink)  
Old 12-07-04, 03:51 AM
Rajab's Avatar
Rajab Rajab is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up USe weblock

I think your problem can be solved with this software

http://www.weblockpro.com

You can lock the contents of your site with a single click and of course there are lots of option too.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #15 (permalink)  
Old 12-07-04, 07:32 PM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
Look at his source code. It's a simple javascript:eval code, once again.

It's not even double encoded except for the javascripts in the header (which anyone could paste into a decoder, found across the internet). FireFox's DOM Object Inspector can let you export the generated xml of the body. The other features - (supposed) link masking, and anti-right-click, unselector, unprinter and the 'screenshot button detector' (which probably only works in IE, or at least not firefox) are simple javascripts in the header, probably taken from various online depositories.

Source encryption, unless you've got a really good custom encoding system, just isn't worth the time. If someone wanted to steal your frontpage-5 masterpieces, there's not much you can do to stop them.

Your content? They could..
  • Type it all out manually
  • Decode the source
  • select and copy
  • take a screen shot, then scan through an OCR (this is getting serious here)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #16 (permalink)  
Old 12-08-04, 02:06 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
I can't believe this guy, he actually dares people to try to find the source.
I'm going to mail him the entire source code just to show him how lame it is..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #17 (permalink)  
Old 12-08-04, 07:05 AM
Sabu Sabu is offline
Junior Code Guru
 
Join Date: Sep 2004
Posts: 458
Thanks: 0
Thanked 0 Times in 0 Posts
Woah.. ok, looking through the header scripts I just might have to take back my crackability comment above.. This is one tough nut to crack, very clever.

[edit].. ok, I'm changing my mind again just rip all the code, change a few "evals" to "document.write"s and Bob's your uncle.

Last edited by Sabu; 12-08-04 at 07:13 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #18 (permalink)  
Old 12-08-04, 10:26 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Don't think it will be that hard to crack. I bet the escaped string contains a decompressor. (the browser needs to read the code!)
I've seen these scripts before and the last one I cracked took about 3 minutes...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #19 (permalink)  
Old 11-14-06, 10:16 PM
sixabat's Avatar
sixabat sixabat is offline
Newbie Coder
 
Join Date: Apr 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
i just tested out over 1000 ways to keep hide my js code, but all them crackable at finally!
just this can work fine! ( hide ur js code with ajax) really great and new

http://www.alilg.com/blog/how-to-pro...x-post-20.html
__________________
www.roostercode.com[/COLOR][/COLOR]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
  #20 (permalink)  
Old 11-15-06, 09:09 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
^^ Here's the "hidden" javascript code from the demo.

Code:
function mouse_move_js(e)
{
	if(document.all)e = event;
	if (e.target) _s = e.target;
	else if (e.srcElement) _s = e.srcElement;
	mouse_x = e.clientX;
	mouse_y = e.clientY;
	
	var HDOC = "Welldone, Javascript is stay alive at this page";
		HDOC += "(Try to move your mouse on this page) <br>Mouse Xposition:"
		HDOC += mouse_x+" Mouse Yposition:"+mouse_y;
		
	document.getElementById('POS').innerHTML =  HDOC
};

var count = 0;
function timer()
{
	document.getElementById('COR').innerHTML =  "Chronometry: "+count;
	count++;
	setTimeout(timer,10);
}
timer();

document.onmousemove = mouse_move_js;
You can NOT hide your source code. When will people understand?

EDIT:

I'm going to close this now. It's old and cannot be done.

Last edited by Nico; 11-15-06 at 09:20 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to view database without using Datagrid mayagenesis ASP.NET 1 10-19-04 11:22 PM
View, edit, delete and add data to a database bigkid PHP 9 07-22-04 12:51 AM
ASP.NET: Day / Work Week / Week / Month web calendar control with view like MS Outloo gicio ASP.NET 2 06-09-04 03:12 AM
unable to view report Alecks Visual Basic 0 06-03-04 03:44 AM
I need a script that will disable the menu bar (file, edit etc).. Master-Chemist JavaScript 3 03-09-04 03:18 AM


All times are GMT -5. The time now is 01:14 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.