Home > How To > How To Hide Javascript Code From View Source

How To Hide Javascript Code From View Source

Contents

Your best bet is to develop your site in a manner that will not be compromised by someone seeing your source. Web browsers render HTML. Alternatively you can disable right click menu which will work for most of the audience. share|improve this answer edited Jul 11 '12 at 7:56 answered Jul 11 '12 html share|improve this question edited Feb 18 '14 at 10:50 Community♦ 11 asked Jul 6 '11 at 13:30 beeflavor 318139 22 View source disabled? Source

Terms of Service Layout: fixed | fluid CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100 Search Introduction home about non-technical introduction slideshows"new" newsletter archive daily web Do a view source and look for the js files. Sadly, for people who have the requirement to serve copyrighted material for viewing but not sharing, and you can't argue them into just letting you release it a sane way... That's what server-side languages, like PHP, are for. more info here

How To Hide Javascript Code From View Source

Adrián Lamo wouldn't be saying to himself "Ooh, weird, they've got a singleton factory? Post Reply Bookmark Topic Watch Topic New Topic programming forums Java Java JSRs Mobile Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: HTML, CSS If you want to waste your time with this then do a search online for disable right click, but it does not work for certain mice with number of buttons, OH

Additionally, there's no way to disable the ability of any user to simply "view source" or "view page info" (or use wget) for your site. You have to include a means of decrypting the page so the browser can display it. Someone pls take a look and let me … Disable right click and view page source option 5 replies Hello there! Disable View Source In Browser Javascript It's just a matter of having the right tools.Obfuscation is never perfect. (Perfect obfuscation is called "encrypted computation", but I don't believe that has been solved.) I would compare obfuscation to

it's the only game in town. How To Hide Html Source Code Using Javascript The … Restricting selections in jQuery UI datepicker using dynamic data 1 reply Embarrassed to say how many hours I've burned on this--am hoping someone can point me down the right For example, in Firefox, go to Options -> Content and next to the "Enable JavaScript" check box, click Advanced. They can save the page, they can priont screen the page.

up vote 0 down vote favorite For some reasons, I have to disable view source for my html. Hide Source Code Of A Web Page All you're going to achieve by disabling right mouse is annoying anyone using your pages, in case they want to use some context menu items. Is using "you" to refer to anyone, not the person you're talking to, a known, specific grammar form? To learn more, see our Cookie Policy.

How To Hide Html Source Code Using Javascript

Is there a trick to dodging? it's working fine. -1 Ahmad_10 1 Year Ago Just change your tag or with -1 How To Hide Javascript Code From View Source If you upload an image and prevent users from downloading it, they can take a screenshot or use their camera. How To Encrypt Html Source Code Volkov Jul 11 '12 at 7:49 add a comment| up vote 0 down vote Create new widget then copy script below and put to your widget or copy script below then

Does using documentation as a developer make me look unprofessional? http://ascadys.net/how-to/javascript-syntax-error-checker.html the disabled right click is possible with javascript, but dont do it. Disabling right-click only frustrates users who wish to do something constructive with your content (copy/paste content or forms, or print, for example). As pointless and silly as this method is, there are some still who use it. Hide Html Source Code Using Php

Solution 3 Accept Solution Reject Solution Besides diabling right click ,if you want to stop users from using menu item , use a popup frame. Insults are not welcome. The Bottom Line Unfortunately, the short answer to this question is, you can't. have a peek here Say you have a 1Gb of software and video data, all encrypted and protected.

e : event; var eventbutton = (isNS) ? How To Disable Ctrl+u On Webpage Are there standards for digital sensor links? When you decided to develop web pages, you became an open source developer.

Is it possible to develop a browser from an existing web browser?

Someone who understands JavaScript can easily decrypt the page. Cons: Notoriously hard to get working across browsers and to actually work properly. You are not protecting yourself against the thousands and thousands of people who click "view source". How To Disable View Page Source In Php Don't fall for them, I've yet to see a single one that's worked, and they never will.

This type of software generally employs the above methods, in varying ways, to hide your source code. This is an issue that larger companies deal with often. For a living.You think your code's obfuscated, but we're just glad that it's not too badly polymorphic and it has consistent return types.But thing is, coders who'll understand all your code Check This Out asked 2 years ago viewed 3020 times active 1 year ago Get the weekly newsletter!

Eric Pascarello author Rancher Posts: 15385 6 posted 11 years ago There are tons of site grabbers out there that you point it at a site and it starts to download HTML, JS, XHR, whatever - you send it, he got it. You could try using a frameset which only includes a single frame that has the source as your page then when the user clicks on the View/Source option they would only You don't want to rely on security through obscurity.

Just because 1% of the population can easily circumvent it doesn't mean it useless. –Karoly Horvath Jul 12 '11 at 20:30 11 @yi_H It’s still useless because you are protecting How to proceed in light of peer-review confidentiality? 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? When it becomes a problem, we take another step in the arms race of obfuscators vs crackers, and wait until they make their next move.It's a stupid, stupid waste of everyone's

Solution 1 Accept Solution Reject Solution Hi mohan, Every browser has its built-in functionality to view the source code or the webpage. However, must all people will notice the scroll bars and will scroll around to find your code. One other thing to note, very important, is that by pushing the envelope with this type of crappy control attempts on client side, may also result in your site being classified What is this aircraft with elaborate folding wings?

In fact, nearly every major Web company obfuscated its Web technology, because they invest thousands of man-years in their intellectual property.Content sites like Quora, Wikipedia, Google, and Yahoo, also place great Posted 13-Mar-12 23:35pm Mohankumar.Engain1.9K Add a Solution Comments manoj kumar choubey 30-Apr-14 8:15am please explain exact requirement to disable view source ? 8 solutions Top Rated Most Recent Rate It's a basic tenet of web design that in order for a page to be displayed, the browser has to receive the code for it. BUt I 4 parts are done.

How can Data be property of Starfleet? http://www.immihelp.com/visitor-visa/sponsor-documents.html Can anyone shine some light on how this is possible? up vote 25 down vote favorite 7 The following website has both right click and view source disabled. However, it is still defeated easily if the person really knows how to deal with "javascript." Therefore, there is no permanent way to do so. 0 rtrethewey 24 1 Year Ago