Nov 25, 2009
Pages: 1, 2

To Hide Your Source Code - all you need to know to hide your source code..

free web hosting

Read Latest Entries..: (Post #18) by mastercomputers on May 3 2009, 11:30 PM.
QUOTE (bobbybeeelan @ May 4 2009, 07:05 AM) HiA better way to do this is put you html in a php file.This way no body will be able to see your code.ByeI don't think you quite understand PHP bobbybeeelan.For PHP to display pages to web browsers, it needs to be able to send the browser the information that they can understand. This information that is sent so the browser can read it, is the source code and usually is output in HTML, the only thing PHP is hiding is the method it uses t...
read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion & Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

To Hide Your Source Code - all you need to know to hide your source code..

shiv
protect your source code!

follow these easy 5 steps:


QUOTE
Step 1:

let's assume your main page is named index.htm. Rename index.htm to encrypt.htm.

Step 2:

open encrypt.htm source code and add the code below to the file, right after the opening BODY tag.

CODE
<script language=JavaScript>m='%3Cscript%20language%3DJavaScript%3E%3C%21--%0D%0A%0D%0Avar%20message%3D%22Function%20Disabled%21%22%3B%0D%0A%0D%0Afunction%20clickIE%28%29%20%20%7Bif%20%28document.all%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%0D%0Afunction%20clickNS%28e%29%20%7Bif%20%0D%0A%28document.layers%7C%7C%28document.getElementById%26%26%21document.all%29%29%20%7B%0D%0Aif%20%28e.which%3D%3D2%7C%7Ce.which%3D%3D3%29%20%7Balert%28message%29%3Breturn%20false%3B%7D%7D%7D%0D%0Aif%20%28document.layers%29%20%0D%0A%7Bdocument.captureEvents%28Event.MOUSEDOWN%29%3Bdocument.onmousedown%3DclickNS%3B%7D%0D%0Aelse%7Bdocument.onmouseup%3DclickNS%3Bdocument.oncontextmenu%3DclickIE%3B%7D%0D%0A%0D%0Adocument.oncontextmenu%3Dnew%20Function%28%22return%20false%22%29%0D%0A%0D%0A//%20--%3E%3C/script%3E';d=unescape(m);document.write(d);</script>



Step 3:

create a text file and name it index.htm (or whatever your main file was named originally). the contents of the new index.htm file is given below - the code below is all that will be contained in index.htm.

CODE
<script language=JavaScript>m='%3C%21--%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0D%0A%23%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0D%0A%23%20%20%20%20%20%20%20%23%0D%0A%23%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0D%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0D%0A%23%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0D%0A%23%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0D%0A%23%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0D%0A%23%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0D%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0D%0A%23%0D%0A%23%%3E';d=unescape(m);document.write(d);</script>



Step 4:

create a text file and name it encrypt.js. the contents of the new encrypt.js file is given below -this is all that will be contained in encrypt.js.

CODE
document.write('<title>||||| SOURCE CODE ENCRYPTION |||||</title>');
document.write('<frameset rows="100%,*" framespacing="0" border="0">');
document.write('<frame frameborder="0" name="topFrame" src="encrypt.htm" noresize="noresize" />');
document.write('</frameset>');


Step 5:

copy all the files to your server (index.htm, encrypt.htm, and encrypt.js). all the files must be located in the same directory. then open the index.htm file. try to view the source code, then try to right click on the page.


cheers!

shiv

 

 

 


Comment/Reply (w/o sign-up)

Houdini
What happens if the user has java or javascript disabled? I guess it don't doo too much.

Comment/Reply (w/o sign-up)

techocian
QUOTE(Houdini @ Mar 21 2006, 08:53 AM) *

What happens if the user has java or javascript disabled? I guess it don't doo too much.


True, but with the most common IE browsers these days...i believe the default setting would be to allow Javascript. Though, i don't see why an average internet user will want to check up on your source code. Still, why would one need to enclose their source code anyway? I find myself feeling proud when someone emails me and complements on my code (seriously, this happened. During a web design competition i believe) laugh.gif even though it's only HTML, CSS and a little Javascript.

Comment/Reply (w/o sign-up)

Samya
QUOTE(techocian @ Mar 21 2006, 08:16 AM) *

True, but with the most common IE browsers these days...i believe the default setting would be to allow Javascript. Though, i don't see why an average internet user will want to check up on your source code. Still, why would one need to enclose their source code anyway?.



U are right smile.gif
I dont think that we should hide the source code by encrypting it ...

First of all this makes the Page much more big in size, and thus taking more time to Load ....
Furthermore, it will also make difficult for u to update the page smile.gif

Furthermore, by default the Javascript is activated but dont use excess of Javascript as it sometimes, irritates the visitor ...

However, it is a good practice, if u have a downloasd site, something like Rapidshare etc,
where u dont want to show the actual path of File ...
But I dont think that any one amongst us gonna create such a site smile.gif


**** All Appreciations and Criticisms are welcome ****

Regards:
Samya Khalid

 

 

 


Comment/Reply (w/o sign-up)

Kushika
Although most people have javascript enabled, some people might use text-only browsers, and you have to htink of you whole audiene as a whole; you site has to have optimum cross-browser compatibility in order to gain as many visitors as you can! wink.gif

Comment/Reply (w/o sign-up)

erinekath
Why don't you just use www.javascriptsource.com (I think that's the URL, I forgot biggrin.gif) Just find the source encrypter script and when they show you the example, use it. It's way better. smile.gif

Comment/Reply (w/o sign-up)

html_man
Hmm instead of doing that you can just block the right button of the mouse and put ur site on a single Frame and tadaaan! XD

Comment/Reply (w/o sign-up)

WeaponX
There's usually (always?) a way around these so-called "encryption" methods. They just encode it with a certain method but decoding it won't take too long. And like Samya mentioned earlier, it adds more bulk to the page file size.

There's a way around that right click button being blocked as well...one can always just go to View->Source and it should show it. I'm sure there's a way to get the code with or without those frames biggrin.gif

Comment/Reply (w/o sign-up)

Lyon2
Thanks for this script, not very secure, but still is good for personal websites.

Now, for professional websites, i don't think that's the apropriate measure to take if one wants to protect the page or entire website source code, the wisest decision is to use a program with high quality algotithms, for instance, when i want to protect the source code of my clients website, wich is my source code after all, i use the following programs:

Advanced HTML Encrypt & Password Protect
(very very good)

SourceGuardian 2.2 Pro
(the best for php encryption)

PHP Code Obfuscator
(php script, it has simple and advanced method)

Encrypt html pro
(encrypts and protects from right click,view source,etc...)

html password lock
(it encrypt the code and also creates a login script in javascript, wich you can add as many users/passwords as you like)

There are others, but i find the above much better, and i already tryed them.

Comment/Reply (w/o sign-up)

Termin-X-man
That's cool, I might consider using this.

Comment/Reply (w/o sign-up)

Latest Entries

mastercomputers
QUOTE (bobbybeeelan @ May 4 2009, 07:05 AM) *
Hi
A better way to do this is put you html in a php file.
This way no body will be able to see your code.
Bye


I don't think you quite understand PHP bobbybeeelan.

For PHP to display pages to web browsers, it needs to be able to send the browser the information that they can understand.

This information that is sent so the browser can read it, is the source code and usually is output in HTML, the only thing PHP is hiding is the method it uses to do this. Anything sent to the browser can be seen, it's impossible to hide the source if it's to be seen by a web browser.

You can however make it harder for someone to gain your source code, but there should be no need. I don't think those who find this technique of obfuscating their HTML any good at actually writing HTML that would be worthy of keeping secret. You'll just add the extra slow down of having your client decoding it and the wasted bandwidth for an overly larger file now.


Cheers,


MC

Comment/Reply (w/o sign-up)

bobbybeeelan
Hi
A better way to do this is put you html in a php file.
This way no body will be able to see your code.
Bye

Comment/Reply (w/o sign-up)

tansqrx
All of this is just a minor to major inconvenientance. If I want your source code then I will get it. Whether it is a minor or major problem depends on the type of encoding you use. The problem is that a web browser still needs to decode the code to produce something useful. If a web browser can decode, I can also. This means that you shouldn’t put anything on the Internet that you don’t want everyone to see. In some cases adding this encoding can call attention to yourself and make you a bigger target. Why would someone go through the trouble of adding this extra security if it weren’t valuable.

A side problem to this technique is that it is closely related to malware. The bad guys don’t put their exploit code in the clear so anyone can casually see it, they use many of the exact methods described here to hide their work (or some might say destruction). If I were to review a page that has encoding like this, the first thing that pops into my head is what are they trying to get into my system? Even if you weren’t up to something evil, my opinion of your site dropped and I would most likely never come back.

The benefits to open or closed systems have been debated for a long time now. I personally fall on the open side of the discussion. I would like to hear some good uses for encoding your source code.

Comment/Reply (w/o sign-up)

Atomic0
No professional web site out there will 'encrypt' or 'encode' the source code. There is simply no reason whatsoever to do so, plus it will make it look unprofessional.

Comment/Reply (w/o sign-up)

iGuest
hiding source codse
To Hide Your Source Code

Good Evening sir/madam

 I put the above code as it is ,but it is not working .And by click on your example an error is coming.

I have one doubt in the index.Htm page are you given only the script but you didn't explain where to put that code means in the body tag or head tag.

if index.Htm page contains only that script then the out put is not coming.Means while execute the page on browser a white page(without any data is )coming.

please explain me about this.

Thanks & Regards

Anu


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 : hide, source, code, hide, source, code

  1. The Step Up. A Guide For Myspace Design
    Actual code is included here :) (2)
  2. Javascript Show / Hide Functions
    need some fine-tuning (3)
    Searching before posting my topic, i found this very helpful post. Javascript show + hide
    However, I'm still muddling around trying to fine tune it, and since i'm no good at coding,
    I'd appreciate any help. Using that example, how do I get the div text to be hidden on loading,
    rather than showing it all at page load. Also, is there a way to have the text change when clicked?
    so that for example, it would say "expand" when it's the small amount of text, and "collapse"
    when it's the full text? ....
  3. Code Improvement And Optimization
    A beta service...it's almost free (2)
    I am offering a code improvement, optimization, validation and accessibilities assessment exclusive
    to Astahost members. This is currently not offered at the Trap17 side of the corporation because
    credits there are no use and I now rarely visit at Trap17 anymore. /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Now there are some certain
    things that are not explained on the page so I will explain them here. 1. This code improvement
    service will only be offered to sites that DOES NOT contain racist, hatred, discriminative, criminal
    (wa....
  4. Free Code Snippets And Css Layout
    (14)
    In this site you can find some excellent CSS layouts and code snipets, its very simple but more
    important its very EFFECTIVE. So dont waiste time and visit : Code-Sucks Best regards,....
  5. Home Videos
    html code for home video (4)
    I was wondering if anyone knows how to turn a home video that is saved on your computer to that of a
    html code so I can put it onto my myspace page... Please if anyone at all knows how to do this
    please please help me!!!!....
  6. Blogger Code Problems
    (1)
    If I posted in the wrong forum, please forgive me /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" /> I had troubles determinating where to put this. Anyhow, I
    have recently started a blog at blogger.com (actually it's blogspot.com). One of the main things
    I didn't like was the archive page. It showed whole posts, and I wanted it to show titles as
    links only. So I found a hack, and did everything as it said, but now I have problems. Blogger has
    codes to determine which page will use that part of the code. In order to define the a....
  7. I Need Help With A Code: Myspace Profile Css
    (5)
    Ok, I made this background for myspace, but it wants to tile itself and all that jazz.. the image is
    800x600 cuz i know most users have that setting. anyhoo im sure there is a html tag out there
    somewhere to keep an image fixed and resized depending on resolution.. but then again i could be
    wrong haha.. come to think of it i probably am wrong but i thought i would ask you all if you knew
    of a code that would do that... here is my profile page for reference: Myspace Page anyhelp is
    greatly appreciated.. i may just wind up fading the edges of the pic into black and cen....
  8. Free Shoutbox? HTML, Flash or PHP Code
    (25)
    does anyone know where i can find a free shoubox thats customisable? it can be in html, php or flash
    format. thanks in advance paul....
  9. Jscript/html/css Code Help
    irritating gaps in spliced image (8)
    Here is a link to one of the pages i am designing for my parents business website. all the other
    pages - except the main page - are just imagemaps. this page and the main are spliced images - the
    main contains a iframe blog - but in this one in xp/ ie and firefox/ all the images are pulled apart
    the idea for the page is that the user mouse-over's the cartons and the blank box of grass in
    the bottom has the details of the product printed in it. i am totally able to git rid of the
    splicing if nessisary and use div's but i cant figure how. could someone help me s....
  10. Simple Java Script Code For Print Pages
    (0)
    A simple java script code for printing your website pages just copy and paste below code on your
    pages you can use image or text instead of button. Print screen button function
    varitext(text){ text=document print(text) } // End --> onclick="varitext()">
    be successful ! Soleimanian....
  11. Best Open Source Cms...
    tell your story... (6)
    ok.. i'm creating this topic to give a ahn to new comers... I began with phpnuke (grat cms...)
    but.... too many sites with it... i mean, my page seemed like a copy... that's not
    good!!!!!!!!!! so, i migrated everything to xoops (a pretty extensive labor if you have 2 or 3 mb
    of MySQL data....) so, now, i really like xoops.. although i don't know many cms.. deepply...
    i would recommend http://www.opensourcecms.com/ ....
  12. Code To Send An Email From A Form
    (10)
    HTML form action=" http://www.bool.co.il/cgi-bin/bu.cgi?page=send2friend&id=8006 " method="
    post "> font face=" Arial "> input type=" text " name=" sender "> /font > the sender: br > input
    type=" text " name=" sender_email "> sender's mail: br > font face=" Arial (hebrew) "> input
    type=" text " name=" receiver "> /font > to: br > input type=" text " name=" receiver_email ">
    email Of receives the announcement: br > font face=" Arial (hebrew) "> input type=" text " name="
    subject "> /font > the subject: br > input type=" submit " value=" send "> /....
  13. Basic XML code
    (3)
    you will need to start with..... ....
  14. Basic css code
    (3)
    to create a website in css...you will need to start with the basic code... /* CSS Document */....
  15. Hex Color codes
    a list of colors in code (6)
    I have here compiled a list of colors in Hexidecimal code. I have listed them in alphabetical order.
    I put them in three different files so ill put them in three posts. A-D, F-M, N-Y, dont worry i know
    my alphabet, their are just no colors starting with E etc. A-D Aliceblue-F0F8FF
    Antiquewhite-FAEBD7 Aqua-00FFFF Aquamarine-7FFFD4 Azure-F0FFFF Beige-F5F5DC Bisque-FFE4C4
    Black-000000 Blanchedalmond-FFEBCD Blue-0000FF Blueviolet-8A2BE2 Brown-A52A2A Burlywood-DEB887
    Cadetblue-5F9EA0 Chartreuse-7FFF00 Chocolate-D2691E Coral-FF7F50 Cornflowerblue-6495ED Cornsilk-F....

    1. Looking for hide, source, code, hide, source, code

See Also,

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



To Hide Your Source Code - all you need to know to hide your source code..

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