Nov 21, 2009
Pages: 1, 2

Wondering How To Hide Your Source Code?

free web hosting

Read Latest Entries..: (Post #15) by the empty calorie on Nov 4 2005, 10:55 AM.
Well, I can't see why I'd even want to hide my source code. Besides, when they take the code, the'yd have to modify it, otherwise it's basically a mirror of your site...once they modify the code, it's not your code anymore, so what's the big deal?
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > JavaScript

Wondering How To Hide Your Source Code?

illusion
QUOTE
Well, give up right now then, because it is absolutely impossible. "No right-click" scripts and other similar scripts will only end up annoying your users in which actually don't even want to steal your source code or images, but rather just want to casually use their browser features. Doing things like this will, indeed, drive away some users because they will be confused if once they come to your site they won't be able to use common features that they are usually able to use.

What it really comes down to is this: if the browser can render the page, and source code can be accessed — and there is nothing more to it. Doing things like using JavaScript to generate the the source code (and attempt to obfuscate it), you are making the page inaccessible to approximately 9% of your visitors (that includes search engines as well). As previously mentioned, "no right-click" scripts are also ineffective because there are several other ways to obtain source without the right-click context menu and moreover, JavaScript can be disabled.

The source code of your site will always be accessible no matter what, it simply isn't worth trying to hide. Accept that it is impossible and simply don't waste your time trying to prevent people from accessing it, because you can't. The more accessible and usable your site is, the more people will be able to use and enjoy your site.

In the case of images, they can also easily be taken from a site no matter what kind of "no right-click" or other scripts you have applied. However, the most practical thing to do is to watermark your images. This will not completely prevent people from attempting to steal it, but it should cut down on the number of people that try to take your images because now there is something on the image that explictly defines it as your work.


wht U guys think.. is it any possible way?


-----Copied from http://www.webdeveloper.com/forum/showthread.php?t=26841 -----szupie

 

 

 


Comment/Reply (w/o sign-up)

qwijibow
lol, i thought this was going to be about preventing reverse engineering...

Stopping people from copying your HTML code is like trying to sell a work of fiction, without letting your customers look inside the book...

its never going to happen UNLESS the government gets all 1984 on your ass, and passes a law saying all browsers must not have a "view source" button / feature...

and even then, those of us who know a little about puters can still steal the source / images using the greatest, and yet most simple networking took of all kind... telnet.

And with open source browsers like Firefox, even if the law forced them to remove such "view source" features, it wouldnt be 5 minutes untill someone wrote a patch to put the feature back in.

anyways... hiding source is pointless.. lets face it, anyone who knows anything about HTML can re-create a simple html webpage.... in that sence hey are only stealing the design, not the code.

but if the authos has actually put some hard work into making a web page (like the forum page here) then the html code has to be generated remotely via GCI or PHP.

 

 

 


Comment/Reply (w/o sign-up)

marijnnn
when are people gonna learn that html can hardly be called "source code". i wouldn't even spend a minute of time trying to protect the code.

Comment/Reply (w/o sign-up)

Hellfire
Well qwijibow, that isn't always true. Some java script can be on the source code and then you will have some trouble. Some people who password protect their sites use and inefficient javascript method. Someone could just get in by doing the wrong password and then looking in the source code for the right one.

Comment/Reply (w/o sign-up)

qwijibow
QUOTE (Hellfire @ Nov 19 2004, 11:54 AM)
Well qwijibow, that isn't always true. Some java script can be on the source code and then you will have some trouble. Some people who password protect their sites use and inefficient javascript method. Someone could just get in by doing the wrong password and then looking in the source code for the right one.
*


it suddenly occurs to me that you dont actually know what you are talking about tongue.gif
sorry, but passwords cannot be found in javascript source.. any-one who ever try's to password protect somthing on client side has obviously never seen a computer before...

all password authentication is always done server side, with (usually) MD5-Hashes. (or MD4 for the the few windows machines out there)

Comment/Reply (w/o sign-up)

r3d
hmmm.... i'd never tried this stuff coz of lack of time. but there is a way to hide your code
first. use flash wink.gif
flash can embedded html tongue.gif
second. use commercial site compressor($100++) blink.gif
third. have u try framming a php gd?
have u notice that when you view php gd snippets there is no view source on the page menu also in right click. but when in frames, right clicking on html frames view source is enable. then try flash in that frames embedded your html most likely if in php smile.gif

good luck cool.gif

Comment/Reply (w/o sign-up)

Bigyan
Hey r3d,

This appeared cool, but you forget one common thing, that is FLASH is not a very popular medium b'coz it is not turned on in many browsers (like Firefox in mine, and I've kept it so for good measure !!).

Anyway, why the hell does one need to protect the source code for ?? The content of the webpage make it good or bad, not its HTML source !! Personally, I'm against all these b'coz I learnt HTML by looking at other people's source codes only !!

If you like other's not to steal your image, watermark it !!
If you want people not to see your cool javascripts, use a scrambler software !!
........... These things are simple !!

Buy,
Bigyan

Comment/Reply (w/o sign-up)

miCRoSCoPiC^eaRthLinG
Hi all,
Not much about javascript or html can be hidden - unless you break up all your javascript and put them as functions in a separate file - and create user rights such that the .js file cannot be read by any "snooping user" - it's pretty tricky but can be done - on the other hand, if your code is in PHP you can try using Zend Safeguard Studio (www.zend.com) to encode the PHP files to be non-human readable. Those who would like to get their hands on a fully working copy could post back here. I dont know if it's illegal but I could post a link wink.gif
Cheers....

Comment/Reply (w/o sign-up)

k22
QUOTE (r3d @ Nov 19 2004, 10:00 PM)
hmmm.... i'd never tried this stuff coz of lack of time. but there is a way to hide your code
first. use flash wink.gif
  flash can embedded html tongue.gif
second. use commercial site compressor($100++)  blink.gif
third. have u try framming a php gd?
have u notice that when you view php gd snippets there is no view source on the page menu also in right click. but when in frames, right clicking on html frames view source is enable. then try flash in that frames embedded your html most likely if in php  smile.gif

good luck  cool.gif
*

Are you sure? rolleyes.gif http://www.sothink.com/flashdecompiler/ it can decompile every flash sites....
The only way to "protect"(why should you do it?) that I know is PHP GD or Js, yep, Javascript is runned by the client and some anti-spam system create a little js that the client sees like a mail addres when he opens that
http://www.kenric.com/AntiSpambotMailto.html

'njoy

IMHO there is no-reason to protect the code..the code must be free..like internet IMHO

Comment/Reply (w/o sign-up)

bigredrosen
i've found two things that work to get rid of most users from copying HTML/images ... first, there <i>are</i> services out there that will block your script (and images too, i'd assume) without using javascript ... however, these require "mucho dinero" as they say in spain (these can be very expensive) ... secondly, you can always try using redirect services, such as www.shorturl.com. with these, it won't hide the coding, but it will move it to another site, and the user needs to search HTML to find the link to your original code

-- bigredrosen

Comment/Reply (w/o sign-up)

Latest Entries

the empty calorie
Well, I can't see why I'd even want to hide my source code. Besides, when they take the code, the'yd have to modify it, otherwise it's basically a mirror of your site...once they modify the code, it's not your code anymore, so what's the big deal?

Comment/Reply (w/o sign-up)

Digital Technic
QUOTE(Hellfire @ Nov 19 2004, 06:54 AM)
Well qwijibow, that isn't always true. Some java script can be on the source code and then you will have some trouble. Some people who password protect their sites use and inefficient javascript method. Someone could just get in by doing the wrong password and then looking in the source code for the right one.
*




But this is merely obfuscation not hiding.

Comment/Reply (w/o sign-up)

jipman
Houdini, that's not the point, hiding sourcecode is usually used to prevent people ripping off other peoples layouts and designs.
Also, there are some javascript sourcecode scramblers that can give a certain degree of safety against most of the people who try to rip off. They work like this:

the entire website is put in one string, that string is then encrypted by some kind of encoder. The encoder puts a decoder (java script) and the string into a html file. So if you check the source you only see a javascript code and some encrypted string, most people stop there.

The thing is, isn't there any plugin available for FireFox that somehow shows the output of the javascript in the source. That would be possible wouldn't it? All you need is a javascript interpreter that displays the output.

Side note.
Most people don't appreciate encrypted site like that which will result in a low visitor number.

Comment/Reply (w/o sign-up)

Houdini
If you simply use PHP as your source the only parts of it that can bee seen are those that PHP echos or prints as HTML, basically the page source you are viewing is just HTML that is how all browsers are able to render the page but you could have all kinds of HTML code going on with included files and the actual main php that will never be seen. You simply can not hide HTML or the echoed result of HTML generated by PHP or Perl or any script.

Comment/Reply (w/o sign-up)

ruben
I agree with Ninja Munky:
What your browser shows is somewhere on your computer. And therefore you can't hide it from a good user. even if you find some complicated methods there will be methods against it.

And why should you want that? They can copy your text, even if they have to retype them, they can copy your images, even if they have to take screenshots.
And your HTML and JS code cannot be so famously good that there is any reasonable explanation for putting so much work in protecting it. It does not contain secret data and anything else can be rewritten. it aint no creative work, it's just some tags. that's the point: theres no point in protecting your sourcecode.

my opinion so far,
ruben

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : wondering, hide, source, code

  1. Vertical Marquee Using JavaScript
    by The JavaScript Source (1)
  2. JavaScript: Hide And Show Any Element With CSS
    From the simple way to the more advanced way (Javascript & CSS) (9)
    Welcome everyone, this is my first post. The first thing you need to know is... CSS
    has two special attributes, the first one is " display " and the second is " visibility ". The
    difference between these two goes like this. " display ": has many properties or values, but the
    ones we need are "none" and "block". "none" is like a hide value, and "block" is like show. If you
    use the "none" value you will totally hide what ever html tag you have applied this css style. If
    you use "block" you will see the html tag and it's content. very simple. " visibi....
  3. Let Visitors Bookmark Ur Site To Get Repeat Visitors!
    easy code to let visitors add a bookmark to ur site.. (1)
    let ur visitors easily add a bookmark to your site. fully configurable, you can specify the url and
    name for the link. Source: http://www.itechies.net/tutorials/jscript/bookmark.htm QUOTE
    Step 1: put the following script in the head of your page.place the code below between the and tags
    within the HTML page that you want them to bookmark. var url = "http://your url"; var title =
    "your title"; function makeLink(){ if(document.all) window.external.AddFavorite(url,title) } //
    --> Step 2: put the following in the BODY of your page. place the code belo....
  4. Dynamically Change The Background Image On Mouse Effects!
    easy code to dynamically change the background image (4)
    stun ur visitor with a new bg image on every mouse click of his! easy code to dynamically change
    the background image. Copied from http://www.scriptworm.com/scriptengine/visit.php?id=30296
    QUOTE control the background image using the links on your site. control the color using
    onMouseOver, onMouseOut, onClick, and a combination of all of them. place the code below between
    the and tags within the HTML page where you want the link to appear. edit the link text provided to
    point at the page you would like to open. Option 1: use this to change the background ....
  5. A Javascript Code
    When you press a link, there is a sound~ (0)
    I find it quite funny and special so I share the code to everybody~ But maybe you all know
    already~^^ 1.Put this between 2.Put this in Do Re Mi Remember to change the link
    of the music~^^ Try it~^^~....

    1. Looking for wondering, hide, source, code

See Also,

*SIMILAR VIDEOS*
Searching Video's for wondering, hide, source, code
advertisement



Wondering How To Hide Your Source Code?

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com