in reply to Encrypt web files!

Once the page on the client-side the browser, it's not Perl's problem. It's HTML and JavaScript problem.

You can use JavaScript to disable right click, which's breakable, however. In IE, I think it is:

function click(){ if (event.button==2){ alert("Oops, you can't do that."); return false; } }

The code is different in Netscape.

You could also hide your HTML in a JavaScript file, so when view source people will see the links to the javascript files, not the content.


________________
Update: Should have mentioned the consensus that there're no solutions to the problem, only deterrent.

Replies are listed 'Best First'.
Re: Re: Encrypt web files!
by bobn (Chaplain) on Jul 24, 2003 at 12:16 UTC

    In the first solution, a knowledgeable user can turn off javascript to get around the "fix".

    --Bob Niederman, http://bob-n.com
      A 'knowledgable user'?? I wish I could have some of those..
Re: Re: Encrypt web files!
by hardburn (Abbot) on Jul 24, 2003 at 13:32 UTC

    For the second solution, it just adds another layer of indirection. That extra JavaScript page must be publically viewable, and anyone smart enough to look at the source should be smart enough to copy-and-paste the link.

    ----
    I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
    -- Schemer

    Note: All code is untested, unless otherwise stated