How to Hide PHP Version on Synology NAS

How to Hide PHP Version on Synology NAS

Your Synology security must be the first thing on your mind, especially when you are using Synology NAS as a web server. WordPress is the basis for building a website, and hosting it from home with Synology has never been easier than this. There are websites on the web, like “Sucuri“, that offer free website scans. They can reveal your current PHP version you are using on your Synology. I honestly don’t like being spied on and I don’t like these sites revealing my PHP version. Privacy is extremely important. Fortunately, there is a simple way to hide your PHP version on Synology. Follow the step by step guide below.

  • Step 1

Go to Web Station / PHP Settings / Edit.

Web Station Synology php settings

  • Step 2

Advanced Settings / Core / Search for expose_php and when you find it, double click on expose_php and change from “On” to “Off”, then click OK.

expose php synology

Now when you do a new scan with “Sucuri”, you should notice that your site’s PHP version is no longer shown, whatever online software or website you may use. Below you can see a before and after screenshot.

BEFORE

Synology expose_php On

AFTER

Synology expose_php Off

Always remember to Force a Re-scan on the Sucuri page to clear the cache when you scan your website again.

force scan

🧡 Please Support My Work by Making a Donation.

This post was updated on