+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Disable Right Click

Hybrid View

  1. #1

    Disable Right Click

    Does anyone Know "How" or "If" you can disable "Right Click" on the front end of the site?

  2. #2
    Hi Lee,
    Check this out:
    Code:
    Only registered members can view the code.
    //Morgan
    Free Advertising at Fyndklippet.se


  3. #3
    Could you please let me know where to enter this script?

  4. #4
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hello Hareesh Ghanta,

    there are two options for your question.

    1. Would you like to disable the context menu on the whole page, then use the following code:

    Code:
    Only registered members can view the code.
    OR

    2. Would you lock only the images on the page, then use the following code

    Code:
    Only registered members can view the code.
    You can insert the code in the header.tpl or better in footer.tpl. (you will find it in templates -> "your_template" -> tpl)
    If you paste the code into footer.tpl, then before the closing body tag "</body>".

    However, you should be clear that there is no 100% image or content protection.

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; May 21, 2013 at 04:46 AM.

  5. #5
    Hello Steffen,
    Thank you for you quick reply.I will apply this and check it out.

  6. #6
    Hello Steffen,
    Is there any way to disable only view source?

  7. #7
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hello Hareesh,

    I hope, i have not misunderstood you...

    I have to disappoint you. If you mean HTML code, it is not possible to hide effectively.
    There are several things that make reading difficult, but there is no way that can completely prevent what it already is. Somehow it must be displayed on the client.
    If that were possible, how the browser should display something then?
    No way.

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; May 21, 2013 at 04:47 AM.

  8. #8
    Hello Steffen,
    Thank you very much for your help.You are excellent..

    Regards
    Hareesh

  9. #9
    Hi guy's, actually there is a way to do this.

    Code:
    Only registered members can view the code.
    Check this link: http://www.mtopsoft.com/encryptpro/h...om/encryptpro/

    //Morgan
    Free Advertising at Fyndklippet.se


  10. #10
    Master
    Join Date
    Apr 2012
    Location
    Germany
    Posts
    421
    Hi Morgan,

    of course there are such "possibilities".
    But is it useful? No.
    They promise a lot and are not worth the money...
    I have therefore written the following

    ... it is not possible to hide effectively.
    ....
    Furthermore, the Flyanx script is based on Smarty.
    The pages are rendered partly by calling.
    It would also be possible here, but the effort useless.

    Also your linked tool would only work on static html pages not on Smarty rendered pages.

    However... every who wants to see the source code will also can do it with obfuscated or encrypted pages.
    Use Firebug and Co and you'll be able to see the source code of encrypted source code.
    It will "more difficult" to read, but not prevented
    It has no sense to spend money or time for this.

    Best regards
    Steffen
    Last edited by Steffen Buschkemper; May 22, 2013 at 07:20 AM.

+ Reply to Thread