--- [EMAIL PROTECTED] wrote:
> Hi,
> 
> i'm designing a web application and i want to protect my web page
> from
> printing and if possible want to protect source code too.
> 
> Do you know any solution that can help me. I've find an application
> named
> HTML guard but it only work for static html pages. I need more a
> class or
> function to prevent for printing.

It's pretty much impossible to prevent someone who wants to from
printing the output of your application. If they can see it, they can
take a screenshot and print the image, if they're so inclined. There
are javascript tools that might turn off <right-click>-Print or
<ctrl>-P or whatever the print command is for your browser. But
that's not going to stop someone who wants to print it. I can't think
of a case where there's a good reason for this, either. But that's
just me.

As for proitecting your source code, as long as PHP is set to handle
PHP files in your web server, and you don't let people FTP or have
shell access on your server, it's going to be pretty tough for
someone to see your PHP source code. Now, your HTML, that's another
story. But again, not quite sure why you'd want to hide that, unless
it contains lots of javascript code. Their are tools to turn off
"View Source," but someone could just as easily telnet into your web
server and view the source directly if they really wanted to.

The bottom line is that unless you want to protect some specific
client-side code, there's nothing to protect.

Mark

=====
Mark Weinstock
[EMAIL PROTECTED]
***************************************
You can't demand something as a "right" unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***************************************


        
                
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to