Welcome to WebmasterWorld Guest from 54.224.113.125

Forum Moderators: mack

Message Too Old, No Replies

How to Prevent Seeing Source Code?

Is there a special script or something?

     
6:37 pm on Jun 23, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 22, 2005
posts:78
votes: 0


How can I prevent people seeing the source
code of a particular web page. I have seen that
some web sites have done this and some products
are also available.

Isn't there a much easier way to
implement this than buying such a product?

6:41 pm on June 23, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 27, 2002
posts:1187
votes: 0


I don't believe there is any 100% way of doing this.

The bigger question is why? Are you willing to keep from being indexed?

There is a big downside to doing this.

11:52 pm on June 23, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member quadrille is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 22, 2002
posts:3455
votes: 0


It would need to also prevent people from downloading the page as HTML, as well as stopping several versions of 'view source' - it might stop a casual visitor, but I cannot envisage a systemt that prevents 'view source' while still allowing 'view page'.

I'd guess that the software does little more than disable menus. Which would slow down a determined viewer by approximately 0.4 seconds!

3:19 am on June 24, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Aug 22, 2005
posts:78
votes: 0


Hi!

Thanks for comments!

I just wanted to protect a web page
that includes a confidential script
on it. I don't want others to download it.
It doesn't matter if SEs doesn't index it.

Is there still a way?

9:41 am on June 24, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 12, 2003
posts:1199
votes: 0


JavaScript? No. If it's executing on your page, it's accessible somehow.

Perl/PHP? Yes. Those scripts are hidden from visitors by default already.

9:59 am on June 24, 2006 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 30, 2000
posts:497
votes: 0


What about one of these [google.com...]

edited : sorry I see you have already looked at these products.

11:54 am on June 24, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Nov 13, 2004
posts:1425
votes: 0


Translate it into Chinese, but don't use the auto-translators. Find a genuine human translator.

Don't worry about scrapers from Asia, the code won't validate or execute properly. -LH