Home > How To > How To Disable View Page Source In Javascript

How To Disable View Page Source In Javascript

Contents

Yes, you could indeed obfuscate it, but that wouldn't deter someone determined enough.  Share this post Link to post Share on other sites Mike    53 Advanced Member Members 53 364 Generate all brace-strings of length n Subjects to discuss while on break with older colleagues Word for a single tunnel within a "tunnel complex" or the complex itself How to professionally Contact Us Copyright 2016 Photon Storm Ltd Community Software by Invision Power Services, Inc. × Existing user? Share this post Link to post Share on other sites anupam    1 Member Members 1 13 posts Posted December 29, 2014 @SolarJS: regarding JScrambler hurting performance, do you know their Source

There are some nice side benefits of having source code available: the ability to learn from someone else's code, and the possibility of customizing components to suit specific needs, but those in my asp.net page. An overly optimistic to say that it only requires 1-2 lines. Writing a lock that can appear in multiple shapes and forms, that is spread out multiple times around the code, using Unfortunately, it's difficult to separate JavaScript from all its browser environment baggage and consider it purely as a language. http://www.htmlgoodies.com/beyond/article.php/3875651/Web-Developer-Class-How-to-Hide-your-Source-Code.htm

How To Disable View Page Source In Javascript

We can view this source using firebug or some other third party tools. By the way this discount you can get also if you write to them directly. I even found a tool which does this automatically. Share this post Link to post Share on other sites anupam    1 Member Members 1 13 posts Posted December 30, 2014 Look at this small example:Original - http://jsfiddle.net/JScrambler/GaeLD/Self-defending - http://jsfiddle.net/JScrambler/5ujp3/ IMHO, I don't

But HTML and JS are client-side technologies. Browsers provide multiple waus to unobfuscate any HTML or CSS regardless of how it was loaded into the browser from the server. JavaScript is currently undergoing a renaissance through AJAX. How To Encrypt Html Source Code At the main menu bar at the top of your browser, select View, and then in the sub-menu, you'll see "View Source" or something similar.

http://jquery4u.com/ jQuery4u Hi Geet, If someone saves the page to their computer (web page complete) then it will save all the .js, .css, images and page HTML so the page will However, must all people will notice the scroll bars and will scroll around to find your code. Permalink Posted 26-Nov-12 6:48am NeerajBhagat09699 Rate this: Please Sign up or sign in to vote. share|improve this answer answered Feb 14 '13 at 18:32 dr jimbob 28.5k562130 add a comment| up vote 0 down vote Options: Load propitiatory client side JavaScript code after the user has

Hope it Helps :) Permalink Posted 29-Apr-14 3:57am Sanket Saxena6.1K Rate this: Please Sign up or sign in to vote. Disable View Source In any case, you shouldn't do validation just on the client side. So we cant do this 100%. At the main menu bar at the top of your browser, select View, and then in the sub-menu, you'll see "View Source" or something similar.

Hide Javascript Code From Client

But as per your need you can do the following: 1. https://www.sitepoint.com/hide-jquery-source-code/ This type of software generally employs the above methods, in varying ways, to hide your source code. How To Disable View Page Source In Javascript Your Email This email is in use. How To Obfuscate Javascript Solution 10 Accept Solution Reject Solution Just, don't do it.

If the browser can read it, which it needs to be able to do to render a webpage, then so can a user. this contact form Cons: Notoriously hard to get working across browsers and to actually work properly. Any Javascript you code can be rendered moot by simply turning off Javascript on the browser (or using a plugin like NoScript). That means HTML and JS source code stored and executed in browser, so you can see it. How To Protect Javascript Source Code

JOIN THE LIST July 30, 2012 A technique for hiding your JavaScript Code Estimated reading time: 3 minutes ( save for later ) This post is currently on hackernews, please consider There have been various methods put forth, but all of these are easily circumvented. Share this post Link to post Share on other sites SolarJS    16 Advanced Member Members 16 122 posts @@SolarJSgames Posted December 17, 2014 YUI Compressor is no ofuscator. have a peek here Also, there are keyboard shortcuts like Ctrl+U that can be used to view source.

felgall 2015-03-18 01:09:09 UTC #15 therockers: 've seen a few source codes that do that, but they actually use other encodes as well which makes it more difficult to read. Hide Php Code From View Source The Bottom Line Unfortunately, the short answer to this question is, you can't. This is the code of invisible.html The clear code of invisible_debut.js is: $(document).ready(function () { var ga = document.createElement("script"); //ga is to remember

Obfuscation will not deter motivated attackers (it will just makes them a bit angrier), so it would be quite unwise to use it as foundation for your security model.

example: js2.js function loaddiv2() {$('#content2').load('content2.php');} content2.php Please follow link then copy paste it in the filename of jquery.js http://dl.dropbox.com/u/36557803/jquery.js I hope this helps. Loading... Through reading the documentation? Hide Html Source Code Using Php heypresto!

Permalink Posted 30-Apr-14 3:11am preeti8055431 Add a Solution Add your solution here B I U S small BIG code Plain TextC++CSSC#Delphi / PascalF#HTML / XML / ASPJavaJavascriptObjective-CSQLSwiftPerlPHPPythonVBXMLvar < > & Resources About Me discourse.org stackexchange.com Learn Markdown Recommended Reading Subscribe in a reader Subscribe via email Coding Horror has been continuously published since 2004 Copyright Jeff Atwood © 2016 Logo image What I do know is that source code availability provides a level of peace of mind for some developers that probably cannot be matched any other way.

We should do Check This Out No Right Click Scripts These scripts stop users from right-clicking, where the "View Source" function is located.

Then encoded with some sort of number because when I tried to decode it, the numbers meant a certain letter. However, they still have fully functional minified code on their machine; the main difference is that the minified version no longer has convenient descriptive names for humans to parse out. I really don't think it's a very powerful obfuscator. See more: C# ASP.NET Javascript HTML Dear sir, How to write a code for disabling view source from mouse right click and choose menu item in menu?

After that I use Jasob for obfuscation. Creating a JS file is common, what user want here (I think) is how to hide any JS variable value when any one choose option "view page source". +1 from my Others, like FireFox, include tools like the DOM Inspector, which allows you to easily view and copy the XML of the page, decrypted. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.

Bad techniques never reproduce and die out. But My Page Was Stolen! next page → Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled Podcast Articles Premium Jump to content 2D Existing user? Disable Browser Back Button Using Javascript ASP.NET how to disable refresh button in browser using javascript How to disable visibility of browser back button using javascript how to disable print screen

No Right Click Scripts These scripts stop users from right-clicking, where the "View Source" function is located. Otherwise, contact the web host or the person's ISP and explaining the situation is a good course of action. There you are unable to use menu item.... If they are doing something different what would that be if you know.

Take your career to the next level with this ReactJS and ES6 course.