Source

The Astroman said:
Is there some way that I can make the source of my website unaccessible or at least make it hard to access?

Use an external java script (.js file) to get your source code... So the only thing in your source code is the call to the javascript... hmm.. but then they could find the file and just open the firle. You can encrypt it.. there are some program out there that can encrypt javascript...
 
Last edited:
Don't you ussaly see the displayed code anyways? I tryed this with a php call for a txt file, but it just shows the displayed code not the call for it.
 
xtechforum said:
Don't you ussaly see the displayed code anyways? I tryed this with a php call for a txt file, but it just shows the displayed code not the call for it.

No. When I created a website a few years ago (oh wow, its been awhile..) I had a bunch of javascript on each page... everything from a menubar to mouseover effects.. I put them all in a .js file and the source code for each page was reduced to the <SCRIPT SRC> tags ..
 
Oh....Well, if you do it with php i think it shows the displays code in the source, becuase thats how i did it, i guess with js it doesn't then.
 
When most people try to disable the "right click", all they need to do is a few mouse clicks and then there in.

I would do what SFR suggested, i've seen some programs that adds a ton of random letters in between the real code, this would make it very hard for someone to make since of it.
 
Well I'm sure there's a way to do it with php. As in having it load an internal file, and only displaying the code to load that file.

But there's always reverse engineering :rolleyes:
 
[-0MEGA-] said:
When most people try to disable the "right click", all they need to do is a few mouse clicks and then there in.

I would do what SFR suggested, i've seen some programs that adds a ton of random letters in between the real code, this would make it very hard for someone to make since of it.


Where can I find such a program??
 
Smoko said:
May I ask why you would want to stop people from viewing the HTML out put of your site?
Because alot of people may try and steal your layout. There are also a few security reasons im sure.
 
You can steal layout's other ways. Like Print Screen, Gimp and a bit of free time.

Also if it's for security, they are going the wrong way about running their site.
 
Back
Top