Results 1 to 7 of 7

Thread: [RESOLVED] Disallow Printing

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Resolved [RESOLVED] Disallow Printing

    I am using PHP in my site for the majority of my pages. I would like to know if there is a way to not allow printing of the pages either using CTRL+P or going into the File menu of a Web browser (including saving of the pages to disk). Please advise if this is at all possible. Thanks in advance.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Disallow Printing

    Would you like to prevent screenshots as well?

    In other words, it's not at all possible.

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Disallow Printing

    Not possible. How do you except to control a user's computer with a web page? Seriously, even if there was a way to do this, I'd hate everyone who did it.

    There is no point it not allowing printing. It's not benefiting you and it certianly isn't benifiting the user.

    Why would you want to do this?
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Disallow Printing

    Quote Originally Posted by penagate
    Would you like to prevent screenshots as well?

    In other words, it's not at all possible.
    of course

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Disallow Printing

    Quote Originally Posted by BrailleSchool
    I am using PHP in my site for the majority of my pages. I would like to know if there is a way to not allow printing of the pages either using CTRL+P or going into the File menu of a Web browser (including saving of the pages to disk). Please advise if this is at all possible. Thanks in advance.
    The easiest way to prevent printing is to not sendthem the page
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Disallow Printing

    In your stylesheet,

    Code:
    @media print {
                         BODY {
                                    display:none;
                                  }
                       }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width