fbpx

Disable file editing in WordPress

WordPress has been the most popular CMS (Content Management System) in the world for several years.

This is of course what makes it more vulnerable to would-be hackers.

Below we explain how you can disable file editing from within the WordPress admin panel.

Step 1
Connect via FTP to the files of your Site.

*You can use a program like FileZilla or CyberDuck.

Step 2
Find the file wp-config.php

Step 3
Right click and then click edit

Step 4
Find the line

/* Add any custom values between this line and the "stop editing" line. */

Step 5
Right after that add

define( 'DISALLOW_FILE_EDIT', true ); // Added by .webtrust

Step 6
Save the changes you’ve made and upload the file to the Server

Ready
Now file editing is disabled in the WordPress admin panel.

https://www.instagram.com/p/CrbJZbnIuE0/