|
That's a question that worries
many people on the Internet.And some people go to great
lengths to hide their sourcecode.
There are several reasons
you might want to conceal thesource code of your web
pages:
=> you have web pages
that rank highly in the search
engines and you don't want
people to see your meta tags
=> you don't want people
copying your web page design
or java scripts
=> you want to protect
your website from email harvesters
and other spam utilities
But can you hide your
source code?
The short answer is no - to
display a web page, the browserhas to be able to read the
source, and if the browser can readit, so can your
visitors.
But there are ways to make
it more difficult for your visitors toread your source
code. Here are some of them:
(1) Adding dozens of
carriage returns at the top of yourHTML page
This one has fooled me a
couple of times. All you see is alot of blank space - but
just keep scrolling down and you'll findthe source code.
(2) Using frames
When you try to view the
source code of a page using thistechnique, all you see is
the first ten or fifteen lines of HTML.But just save the
page to a folder on your hard disk and thenlook for a
sub-folder where the images in that page weresaved to.
In the sub-folder you'll
find an HTML file that contains the sourcecode you were
looking for. Again, this won't fool experiencedusers, but
it's worth a shot. Here is the code: http://www.ezine-writer.com/framescode.html
(3) Disabling Right Click
This is an old trick and
experienced surfers know how to getaround it. Here it is
anyway - a script that disables Right Click: http://www.ezine-writer.com/rightclick.html
(4) Disabling View Source
I searched high and low for
a script that disables 'View Source'in the browser menu
bar, and couldn't find one.
Here is a script that is
supposed to disable 'View Source' - I triedit out in my
browser (IE 6.0) and it didn't work, so perhaps it
onlyworks in older versions of IE: http://www.ezine-writer.com/no-source-code.html
(5) Encryption plus frames
This is a technique that
will work on all but the mostexperienced web surfers. Here
is the code for doing it: http://www.ezine-writer.com/hidesource.html
I've created a copy of my
index page using the abovetechnique - if you click on View
Source, all you see is a jumbleof characters: http://www.ezine-writer.com/encrypted.htm
Well, that's it! All you
need to know about hiding your source code.
|
About
The Author
Michael
Southon has been writing for the Internet
for over 3 years. He has shown hundreds of
webmasters how to use this simple
technique to build a successful online
business. Click here to find out more: http://EzineWriter.com/ |
|
|