Tweaks

Hide HTML Comments

What is WordPress HTML Comment?

WordPress, along with its plugins and themes, often adds HTML comments to your website’s source code. These comments can include details about plugins and themes in use, such as names and version numbers.

<!-- This site is using Plugin XYZ v1.2.3 -->
<!-- Theme: SampleTheme v4.5 -->

While these comments are invisible to visitors, theme detectors and hackers can scan them to identify vulnerabilities or outdated software, making your site a target for attacks.

Enabling the Hide HTML Comments feature in WP Ghost can completely remove these comments from the frontend source code and make your site harder to detect or analyze.

Why Hide HTML Comments?

  • Improved Security: Prevents theme and plugin detectors from identifying the technologies used on your site.
  • Reduced Vulnerability Exposure: Hides version details that could be exploited by attackers.
  • Cleaner Source Code: Removes unnecessary comments, making your source code more compact and professional.

Hide HTML Comments

  1. Go to WP Ghost > Tweaks > Hide Options.
  2. Switch on the Hide HTML Comments option to remove the comments from the source code.
  3. Click the Save button to apply the changes.
John Darrel

Change Database Prefix in WordPress

Because hackers often use bots to search for security flaws in your website, it is…

1 year

Customize WordPress Uploads Directory

The easiest way to change the default media uploads path is to use the WP…

1 year

WP Ghost and WP Rocket Cache

To hide all CSS and JS you need to follow the steps to Combine the…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Setting up Two-Factor Authentication (2FA) for WordPress Using Mobile Apps

When you enable two-factor authentication (2FA) for your WordPress website, it adds an extra layer…

1 year