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.
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.
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.
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) even though it's only HTML, CSS and a little Javascript.
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 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
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
**** All Appreciations and Criticisms are welcome ****
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!
Why don't you just use www.javascriptsource.com (I think that's the URL, I forgot ) Just find the source encrypter script and when they show you the example, use it. It's way better.
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
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.
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.
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.
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.
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.
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? ....
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....
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,....
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!!!!....
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....
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....
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....
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....
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/ ....
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....
Looking for hide, source, code, hide, source, code