Results 1 to 4 of 4

Thread: [RESOLVED] right click

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Resolved [RESOLVED] right click

    how can i disable right click on my project so no-one can right click and copy or view source, but i know many people know shortcuts, but not everyone does... it would block someone.

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: right click

    This really won't stop anyone, FYI.

    In IE7 it will prompt the user if they want to allow the script to run.
    It doesn't work in Fx or Opera.

    And as you said, anyone can go View -> Source to view anything they want and they can also print screen and crop out whatever they need.

    With that being said, here is a script that will disable it in IE if they allow the script to run.

    http://javascript.internet.com/page-...ght-click.html

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: right click

    if they must allow it, then it wouldnt be useful.. well anyways, thanks for your help.

  4. #4
    Fanatic Member
    Join Date
    Nov 2007
    Posts
    520

    Re: [RESOLVED] right click

    As Kfcsmitty said,

    Its impossible to hide your source code.

    Most browsers have a "View Source" option built into them.

    The only way to hide it successfully, is to encrypt the code. I've never used it, but ZEND (php) encrypts it.

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