Plugins

WP Ghost and WP Rocket Cache

Even if WP Rocket doesn’t offer a free version of the cache plugin, we recommend buying it as it’s one of the best cache plugins on the market.

  1. The WP Rocket has all the features you need to optimize the WordPress site speed to 100%.
  2. Because WP Rocket is focused on website speed optimization rather than security, it works well with the WP Ghost plugin.
  3. WP Rocket plugin has the option to Combine all CSS and JS files and also the inline styles.

With a bit of setup, WP Rocket + Hide My WP Ghost will help you secure your website & hide the plugin and theme CSS and JS files from Themes Detectors.

Setup WP Rocket

To hide all CSS and JS you need to follow the steps to Combine the JS and CSS files into one file. Let’s see how you can do this with the WP-Rocket plugin.

Combine the JS Files

The plugin offers the option to Minify and combine the JS Files into one file. As we tested it, this worked well with WP Ghost.

  1. Go to WP Rocket > File Optimization section.
  2. Click to activate the Minify JavaScript files option to optimize and reduce the JS size.
  3. Click to activate the Combine JavaScript Files option to combine all JS files in one random JS file.
  4. Click the Save Changes button to apply the changes.

The Combine JavaScript Files option will combine all of your JavaScript files into a single undetected by theme detectors file.

Combining CSS and JS files will still result in a speed bump for specific WordPress sites, so we recommend testing your page speed with this option enabled and disabled.

Combine the CSS Files

The plugin offers the option to Minify and combine the CSS Files into one file. We tested it, and it worked well with WP Ghost.

  1. Go to WP Rocket > File Optimization section.
  2. Click to activate the Minify CSS files option to optimize and reduce the CSS size.
  3. Click to activate the Combine CSS Files option to combine all CSS files in one random CSS file.
  4. Click the Save Changes button to apply the changes.

WP-Rocket “Combine CSS files” option will combine all of your CSS files into a single undetected by theme detectors file.

Hide WP Rocket Cache Path with WP Ghost

Now that all the CSS and JS are combined, these files are present in the cache directory.

By default, the cache path is /cache/min/ but the URLs inside the cache are /cache/min/1/wp-content/ and /cache/min/1/wp-includes/ where 1 is the site ID.

WP Ghost automatically detects WP Rocket and hides the WP-Rocket cache URL in Hide My WP > Mapping > URL Mapping.

Change Paths in Cache Files

To activate WP Ghost and change the paths in the cache file, go to WP Ghost > Change Paths and activate the option Change Paths in Cache Files from the sidebar. The plugin will automatically change the paths in the background using WP Cron.

Note! If WordPress Cron is deactivated on your website, you can manually click to change the paths once the files are cached.

John Darrel

Change Database Prefix in WordPress

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

12 months

Customize WordPress Uploads Directory

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

12 months

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…

12 months

Is WordPress Website Easily Hacked?

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

12 months

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…

12 months

7G Firewall for WordPress

One of the benefits of using the 7G Firewall is that it's highly customizable with…

12 months