WordPress.org

Forums

Hide source code? (22 posts)

  1. r1200rt
    Member
    Posted 2 years ago #

    How do I prevent people from seeing the source code on my sites?

    Can someone provide the right script

      AND

    explain exactly where to cut and paste it?

    All help will be truly appreciated.

    Another option is to totally lock down the site so no one can copy anything. (page by page would be nice on this, so I can leave the blog page free for comments by visitors)

    Please advise
    Neil
    [Personal contact info redacted]

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    There is no way to do that - what are you trying to hide?

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Short answer: you can't. If you really, really, don't want people copying your content, don't publish on the web., Harsh but true, I'm afraid.

  4. Doodlebee
    Member
    Posted 2 years ago #

    What he said - you can't do that.

    Sure, there's scripts that disable right-clicking, but that only stops people who don't know anything, and makes general users to your site upset. Anyone else can easily get around it.

    So yeah, what ARE you trying to hide?

  5. WPyogi
    Forum Moderator
    Posted 2 years ago #

    She :)!

    This may be relevant if you want a more detailed explanation:

    http://www.htmlgoodies.com/beyond/article.php/3875651/Web-Developer-Class-How-to-Hide-your-Source-Code.htm

  6. Andrew
    Forum moderator & snail smusher
    Posted 2 years ago #

    Why not just buy some copyright?

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    That can be incredibly expensive.

  8. r1200rt
    Member
    Posted 2 years ago #

    If you go to http://russbianchi.com you will see a totally locked down site.

    I am attempting to prevent blatant copying of my work. I know that it can be copied without much recourse, but the more difficult I can make it would give me a little peace of mind. Perhaps this is futile, but it p__s me off when someone takes 500 hours of my work and costs, and just copies it.

    Thanks WPyogi, I will look at the article.

  9. Doodlebee
    Member
    Posted 2 years ago #

    Oops! Sorry Yogi! XD

    And copyright's not that expensive. I have a colleague that prints off her websites and sends the package to get copyrighted, something like a $30 fee.

    But still, source code can't really be copyrighted. The *design* can (as far as images, etc go), but the code itself ('specially when it's already a derivative of something that's expressly open-source) can't.

    If the OP is trying to protect, say, the location of some files, or block people from hotlinking things, there's other, better ways to accomplish such actions.

  10. r1200rt
    Member
    Posted 2 years ago #

    Read the article WPyogi, yup that sucks.

  11. alchymyth
    Forum Moderator
    Posted 2 years ago #

    much of that site is done in Flash - and the rest can be copied easily.

  12. r1200rt
    Member
    Posted 2 years ago #

    "If the OP is trying to protect, say, the location of some files, or block people from hotlinking things, there's other, better ways to accomplish such actions."

    Not sure what an OP is, but can you explain further?

  13. Andrew
    Forum moderator & snail smusher
    Posted 2 years ago #

    And you can still access that "totally locked down" site's source code
    view-source:http://russbianchi.com/
    http://snag.gy/pmeoE.jpg

    All that website does is accuses anyone who right clicks of being a criminal.

  14. Doodlebee
    Member
    Posted 2 years ago #

    Yeah, that's not locked down, that's just using a JavaScript to shut off right-clicking. It's *seriously* easy to bypass. Maybe the site author feels better having it there, but believe me when I say all it'll do is make legitimate visitors angry. Anyone who wants the code can simply get it if they really want to.

  15. Doodlebee
    Member
    Posted 2 years ago #

    And OP means "original poster".

  16. r1200rt
    Member
    Posted 2 years ago #

    Okay, I am a novice at website creation, and I appreciate all your comments. Thanks

  17. r1200rt
    Member
    Posted 2 years ago #

    BTW - I am on a motorcycle forum that provides technical assistance or other advice re: motorcycles, and this group here (WP support) is the fastest responders I have every encountered. Thanks again. I guess I'll have to suck it up and move on.

  18. WPyogi
    Forum Moderator
    Posted 2 years ago #

    LOL - you DID get an outpouring of immediate "support"! Sorry it wasn't what you wanted to hear, but like you said, you did learn something :)!

  19. r1200rt
    Member
    Posted 2 years ago #

    thanks

  20. Andrew
    Forum moderator & snail smusher
    Posted 2 years ago #

    Please don't advertise your website on WordPress.org forums.

  21. esmi
    Forum Moderator
    Posted 2 years ago #

    And copyright's not that expensive. I have a colleague that prints off her websites and sends the package to get copyrighted, something like a $30 fee.

    That doesn't mean anything unless the copyright owner can then pursue any infringements in the courts. That's where the real cost of maintaining copyright kicks in.

  22. r1200rt
    Member
    Posted 2 years ago #

    copyright infringement chasing can be very expensive

Topic Closed

This topic has been closed to new replies.

About this Topic