WordPress.org

Ready to get started?Download WordPress

Forums

Hide source code (7 posts)

  1. alexandreperei
    Member
    Posted 6 years ago #

    Hi everyone, can you tell me how i can hide the source code when we click on second button of mouse and appears show source code? There is something we can put on header, i think, but i don't remember.

  2. MichaelH
    Member
    Posted 6 years ago #

    You mean hide the 'html' code that is generated by WordPress?

    I don't believe you can do that, except to not put your blog on the Internet.

  3. alexandreperei
    Member
    Posted 6 years ago #

    Yes. I now there is a way to do that, but i don't remember.

  4. haochi
    Member
    Posted 6 years ago #

    No, you can't. We know what we are talking about.

    Unless you mean to "disabling" right click using JavaScript (or you want to publish the blog in the form of images) - which is not fool proof at all for obvious reasons.

    Google: "disable right click javascript"

  5. Michael Torbert
    WordPress Virtuoso
    Posted 6 years ago #

    Sure you can hide the HTML so that people can't see it. But of course, that would mean that the browser couldn't see it either, so you'd not really have a site on the web.

    If a browser can read it, so can a person.

    You can do things like disabling right click, but that doesn't really help too much for most people.

  6. Roy
    Member
    Posted 6 years ago #

    I noticed that there are websites that somehow managed to disable both the "view" "source" of the IE menu (you can click it but nothing happens) and the same process with the right mouse button. The mouse button also just works and the other functions too. I'm curious how they manage to do that. Here's an example (I haven't tried it with Firefox yet, only IE; I'm currently at work).

  7. whooami
    Member
    Posted 6 years ago #

    Im not sure what you see, but I can view the source of that site just fine, in IE --

    right click, view source.

    drop down menu, view source.

    IE-7

Topic Closed

This topic has been closed to new replies.

About this Topic