• How do I make it where someone comes to my website and wont be able to view the source code when the right click on my website?

Viewing 9 replies - 1 through 9 (of 9 total)
  • You can use a javascript right click override, but as for the intelligent ones viewing your HTML, you won’t block us. You can try an obfuscation of sorts, but those can be undone also.

    In more simple terms – you can’t. Unless you are hiding something, there is no reason you should want to either.

    Thread Starter jasonxman

    (@jasonxman)

    is it safe to have this publicly displayed?

    Of course. Every website needs to display it’s code. Without the code, a web browser cannot display your webpage.

    Just simply put the code: oncontextmenu="return false;" on your <body> tag.
    Implementation:
    <body oncontextmenu="return false;">

    There are at least a dozen ways that I can think of to bypass that, hewoo. The bottom line is; you simply cannot protect your source code.

    Thread Starter jasonxman

    (@jasonxman)

    kthx

    Shane Gowland : I just answer the question “How do I make it where someone comes to my website and wont be able to view the source code WHEN THE RIGHT CLICK“..
    Of course not completely protect the source code.. (–“)

    jasonxman : U’re welcome.. ^_^

    You can also use Houdini & MHR-Custom-Anti-Copy Plugins in concert.

    But a remedy for “view source” in Firefox & Chrome is still outstanding.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to disable view source on website?’ is closed to new replies.