Title: Hide source code?
Last modified: August 20, 2016

---

# Hide source code?

 *  [r1200rt](https://wordpress.org/support/users/r1200rt/)
 * (@r1200rt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/)
 * 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]_

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/hide-source-code-3/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/hide-source-code-3/page/2/?output_format=md)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3373998)
 * There is no way to do that – what are you trying to hide?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3373999)
 * 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.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374000)
 * 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?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374003)
 * 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](http://www.htmlgoodies.com/beyond/article.php/3875651/Web-Developer-Class-How-to-Hide-your-Source-Code.htm)
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374004)
 * Why not just buy some copyright?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374006)
 * That can be incredibly expensive.
 *  Thread Starter [r1200rt](https://wordpress.org/support/users/r1200rt/)
 * (@r1200rt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374008)
 * If you go to [http://russbianchi.com](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.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374009)
 * 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.
 *  Thread Starter [r1200rt](https://wordpress.org/support/users/r1200rt/)
 * (@r1200rt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374012)
 * Read the article WPyogi, yup that sucks.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374013)
 * much of that site is done in Flash – and the rest can be copied easily.
 *  Thread Starter [r1200rt](https://wordpress.org/support/users/r1200rt/)
 * (@r1200rt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374014)
 * “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?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374015)
 * And you can still access that “totally locked down” site’s source code
    view-
   source:[http://russbianchi.com/](http://russbianchi.com/) [http://snag.gy/pmeoE.jpg](http://snag.gy/pmeoE.jpg)
 * All that website does is accuses anyone who right clicks of being a criminal.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374016)
 * 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.
 *  [Doodlebee](https://wordpress.org/support/users/doodlebee/)
 * (@doodlebee)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374017)
 * And OP means “original poster”.
 *  Thread Starter [r1200rt](https://wordpress.org/support/users/r1200rt/)
 * (@r1200rt)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/#post-3374019)
 * Okay, I am a novice at website creation, and I appreciate all your comments. 
   Thanks

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/hide-source-code-3/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/hide-source-code-3/page/2/?output_format=md)

The topic ‘Hide source code?’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [hide](https://wordpress.org/support/topic-tag/hide/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 21 replies
 * 6 participants
 * Last reply from: [r1200rt](https://wordpress.org/support/users/r1200rt/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/hide-source-code-3/page/2/#post-3374090)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
