How do I block file editing from my WordPress dashboard?

“WordPress” , although this option is not used very often and is aimed primarily at people who build websites, allows you to edit template files and plugins. This can be helpful if you want to modify e.g. a file from a template that is currently used on the website, i.e. functions.php

However, the ability to edit when your website is attacked by malicious bots or an unauthorized person gains access can make it easier to immobilize your website. You can easily block the edit option by including the rule in the wp-config.php file

define('DISALLOW_FILE_EDIT', true);

The wp-config.php file is located in the main directory where your “WordPress” was installed. To be able to modify it, you must log in to the FTP server with the data you received when activating your account.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.