---
title: "How to Disable View Page Source in WordPress?"
url: https://nexterwp.com/docs/disable-view-page-source-in-wordpress/
date: 2023-02-24
modified: 2026-04-15
author: "Aditya Sharma"
description: "Page source code of a WordPress website can show a lot of information, it not only shows the content of your website, which can be easily copied but it can..."
image: https://nexterwp.com/wp-content/uploads/2024/05/disable-view-page-source-in-wordpress-1024x519.jpg
word_count: 194
---

# How to Disable View Page Source in WordPress?

## Key Takeaways

- Nexter Extension allows users to disable the View Page Source hotkey with the Content Protection option.
- Users can exclude specific roles from the Disable Ctrl+U/CMD+U rule in the Nexter Extension settings.
- Disabling Right Click is recommended to further prevent access to source code on a WordPress website.

Page source code of a WordPress website can show a lot of information, it not only shows the content of your website, which can be easily copied but it can also show information like WordPress version, theme name, custom js etc. which can be used by hackers as well.

So even from a website security point of view, you should disable the View Page Source option on your WordPress website.

To check the complete feature overview documentation of Content Protection feature, [click here](/docs/content-protection-for-wordpress-overview/).

With the Nexter Extension Content Protection option, you can easily disable the View Page Source hotkey.

Following the below steps:

From the Dashboard, go to **Nexter **>** Extension**s > **Security**

Then go to the **Content Protection** section, enable the toggle, and click the gear icon (⚙).

![](https://nexterwp.com/wp-content/uploads/2023/02/enable-content-protection-new-1024x511.png)

In the popup, go to the **Protections** tab, turn on the **Disable Ctrl+U/CMD+U** toggle.

From the **Who Can Access** section, you can exclude users by role from the above rules.

Then click on the **Save** button.

![disable page source](https://nexterwp.com/wp-content/uploads/2023/02/disable-page-source-new.png)

You should **Disable Right Click** option too, as users can check the source code from there as well.

Also, check [How do I Prevent Text from Getting copied in WordPress](https://nexterwp.com/docs/prevent-text-copy-in-wordpress/).

## Frequently Asked Questions

**Q: What if the Ctrl+U/CMD+U toggle doesn't disable the view page source?**
A: If the Ctrl+U/CMD+U toggle doesn't work as expected, ensure that you've saved your changes after enabling it in the Nexter Extension's Content Protection section. Sometimes, browser extensions or settings may override this functionality. Additionally, consider disabling right-click options as users can still access the source code through that method.

**Q: Is it necessary to disable right-click along with the view page source option?**
A: Disabling right-click is recommended in conjunction with disabling the view page source option. Users can still access the source code through right-click context menus, so implementing both measures enhances your site's security. This dual approach helps protect sensitive information like your WordPress version and theme details.

**Q: What are the security benefits of disabling view page source in WordPress?**
A: Disabling view page source helps protect sensitive information about your website, such as the WordPress version and theme name, which can be exploited by hackers. By using the Nexter Extension's Content Protection feature, you minimize the risk of exposing vulnerabilities that could be targeted in attacks.

**Q: How does the Nexter Extension improve content protection in WordPress?**
A: The Nexter Extension enhances content protection by providing features like disabling the view page source hotkey and right-click options. This not only helps prevent content copying but also secures critical information that could be used maliciously. Utilizing these features is essential for maintaining a secure WordPress environment.
