Title: hide source code
Last modified: August 19, 2016

---

# hide source code

 *  [faycomar](https://wordpress.org/support/users/faycomar/)
 * (@faycomar)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/hide-source-code-2/)
 * i want to know how to hide source code of a wordpress website. so it cant be 
   viewed by visitors

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/hide-source-code-2/#post-2046924)
 * Open your header.php file and add this jQuery snippet right before the closing
   < /head> tag:
 *     ```
       <script type="text/javascript">
       $(document).ready(function(){
           $(document).bind("contextmenu",function(e){
               return false;
           });
       });
       </script>
       ```
   
 * And test it
 *  [syimen](https://wordpress.org/support/users/syimen/)
 * (@syimen)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/hide-source-code-2/#post-2047173)
 * it does not work 🙁

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [syimen](https://wordpress.org/support/users/syimen/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/hide-source-code-2/#post-2047173)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
