Home > How To > Javascript Hide View Source

Javascript Hide View Source


This rules out search engines, users who've chosen to disable JavaScript, and users using a textual browser (such as the blind) that doesn't have JavaScript capabilities. What do you mean by "There's little reason to even attempt to hide the code used for basic web page use"? –Celeritas Feb 18 '13 at 0:54 @Celeritas if I say if your business model is that dependent on clever, obfuscated source code tricks, it isn't much of a business model. Source Code Padding Really, the oldest trick in the book. Source

The View Source function is also available through the top Menu. Share this post Link to post Share on other sites anupam    1 Member Members 1 13 posts Posted December 31, 2014 This isn't an exact science, but I think it's We can do one thing. However, must all people will notice the scroll bars and will scroll around to find your code. 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

Any JS that is executing on a client can be debugged using FireBug. Treat my content as plain text, not as HTML Preview 0 … Existing Members Sign in to your account ...or Join us Download, Vote, Comment, Publish. This rules out search engines, users who've chosen to disable JavaScript, and users using a textual browser (such as the blind) that doesn't have JavaScript capabilities.

Many people think that if they are buying it, it must work. No Right Click Scripts These scripts stop users from right-clicking, where the "View Source" function is located. i need to hide that from public view in source code Mittineague 2015-03-17 07:06:45 UTC #4 Can't be done. How To Encrypt Html Source Code in my asp.net page.

Yes it renames symbols, obfuscates strings, but that's pretty much it. Hide Javascript Code From Client discussion boards mentors Post a comment Email Article Print Article Share Articles Reddit Facebook Twitter del.icio.us Digg Slashdot DZone StumbleUpon FriendFeed Furl Newsvine Google LinkedIn MySpace Technorati YahooBuzz Web Developer Class: Is there a name for this kind of comparator? learn this here now In the end, the only sure fire way to make sure no one can steal your source code is to never put it on the Internet at all.

Using JavaScript to generate the script would keep it out of the View Source better (still visible under the live DOM) -- that is, it can't just be "right clicked on" Disable View Source Off course, you want to secure the communication channel, perhaps using HTTPs. In any case, you shouldn't do validation just on the client side. It involves taking your code, using a custom made function to "encrypt" it somehow, and then putting it in an HTML file along with a function that will decrypt it for

Hide Javascript Code From Client

Label & Text-box alignment. Many people think that if they are buying it, it must work. How To Disable View Page Source In Javascript If you can see the source code, the binary is alive-- it can evolve. How To Obfuscate Javascript Expression must be a list type: Set A paper I received to review has (independently) duplicated work that we are writing up.

I am always try to make some unique design on my blog but every time others are copying my design by viewing blog source code through Firefox. http://wirelessready.org/how-to/javascript-disable-viewsource.html A User is able to view the source, however, it isn't understandable. Browsers provide multiple waus to unobfuscate any HTML or CSS regardless of how it was loaded into the browser from the server. John Lam recently observed that JavaScript is the world's most ubiquitous computing runtime. How To Protect Javascript Source Code

You have to include a means of decrypting the page so the browser can display it. I know it's cruel that in a few minutes someone can steal hours of your work, but hiding your source code can't help you. Linux questions C# questions ASP.NET questions fabric questions SQL questions discussionsforums All Message Boards... have a peek here Don't fall for them, I've yet to see a single one that's worked, and they never will.

function unloadJS(scriptName) { var head = document.getElementsByTagName(‘head').item(0); var js = document.getElementById(scriptName); js.parentNode.removeChild(js); } function unloadAllJS() { var jsArray = new Array(); jsArray = document.getElementsByTagName(‘script'); for (i = 0; i < jsArray.length; Hide Php Code From View Source However, any externally referenced files will only work if the computer is online, and any domain specific functionality will not work (ie if it's using js to get the domain name My JS code is an array of characters, a character has an Unicode value which lies in the range from 0 to 255 so what I decided to do was to

Isn't there Any Hope?

What is tricky about that? Premium Course1h 1m Premium CourseDarin Haener, Jun 09Diving into ES2015 Premium Course3h 7m Premium CourseM. Any client-side javascript must be downloaded by users to run on their browsers, and can't be hidden. Hide Html Source Code Using Php At first I came up with simple standard stuff like hiding the context menu which usually appears on right click in order to somehow restrict inspecting the DOM.

An image is worth more than thousand words. Rajeevrrs 2015-03-17 12:02:42 UTC #10 I understand. Some allow you to save the page, decrypted for easy viewing later. Check This Out If you do, then it (or an easily followed reference to it) forms part of the source.

It involves adding a ton of white space before the start of your code so that the view source menu appears blank. Share this post Link to post Share on other sites SolarJS    16 Advanced Member Members 16 122 posts @@SolarJSgames Posted December 30, 2014 I won't post any breaker tools, since Why are license plates for bicycles no longer used? I'm interested in learning about alternatives. Regarding building & testing, I'm currently using JScrambler API client with Grunt, which automates everything.

Read the case How to change legend orientation in QGIS? Why were people led to believe that the Apollo mission was fake in Interstellar? I found it not to be worth the money and time. Also, the payment model JScrambler uses is obscure too. That's the bottom line.

Some online tools you can use are: JavaScript Beautifier - make your JavaScript code look pretty! Sure, the AJAX-ified clones of Word and Excel are still pretty lame, but they're the first baby steps on the long road to rewriting every client application in the world in It's impossible to obfuscate or hide JavaScript running in a browser. The Netscape 6 browser did it automatically without even needing the two lines of JavaScript.

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 And i have several demo code on my site? (i dont want...just an example..) Share this post Link to post Share on other sites ultimatematchthree    8 Advanced Member Members 8 I have seen some developers go the path of (in)security though obscurity, which I consider to be a carefully engineered vulnerability that should be avoided entirely. You can try to hide it using frames, but some browsers offer the option to view frame source.

Share this post Link to post Share on other sites anupam    1 Member Members 1 13 posts Posted December 30, 2014 I've tested Jasob in the past. Use this service for example. I also used something they have called domain lock (this makes the code only run in specific domain otherwise it breaks), which is useful when someone is trying to just copy share|improve this answer answered Jul 29 '11 at 6:13 Quentin 499k56649820 3 I'm not sure this answer really answered the question being asked (even though it got 10 upvotes in

Sign In Sign Up Browse Back Browse Forums Chat Staff Online Users Activity Back Activity My Activity Streams All Activity Unread Content Content I Started Search current community blog chat Information Even Microsoft has demonstrated this by providing Windows Source to certain customers, like large governments, who have the leverage to demand it.