There are javascripts out there to disable the View Source option when the
user right clicks on your page. Disables for the whole page though, not just
a section of your code. Search here:

Thing is, scripts like those are easily defeated and the determined user
will be able to circumvent your disabling script and view the whole page
anyway. Something as simple as disabling javascript is enough to get around

Best way to hide the script (IMHO) is to make it server-side using PHP or
SSJS then put it in a directory that is made "unbrowse-able" to anonymous
users through web server permissions (CGI-BIN, for example).

Have fun.

-----Original Message-----
From: Bo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 2:28 PM
Subject: [PHP-DB] how to hide my code?

I wrote a block of javascript code, what is the easiest way to hide my

Thank you.


PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to