Title: Lock PHP Files
Author: rokundev
Published: <strong>juillet 7, 2025</strong>
Last modified: juillet 7, 2025

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/lock-php-files.svg)

# Lock PHP Files

 By [rokundev](https://profiles.wordpress.org/rokundev/)

[Download](https://downloads.wordpress.org/plugin/lock-php-files.1.0.4.zip)

 * [Details](https://tah.wordpress.org/plugins/lock-php-files/#description)
 * [Reviews](https://tah.wordpress.org/plugins/lock-php-files/#reviews)
 *  [Installation](https://tah.wordpress.org/plugins/lock-php-files/#installation)
 * [Development](https://tah.wordpress.org/plugins/lock-php-files/#developers)

 [Support](https://wordpress.org/support/plugin/lock-php-files/)

## Description

Secures your WordPress installation by:

 * Disabling theme/plugin editors via DISALLOW_FILE_EDIT
 * Blocking file modifications via DISALLOW_FILE_MODS
 * Removing editor menu items
 * Revoking file editing capabilities
 * Lightweight (only 3KB) with zero performance impact

## Installation

 1. Upload to `/wp-content/plugins/`
 2. Activate in WordPress admin
 3. File editing will be immediately disabled

## FAQ

### How do I verify it’s working?

Try accessing /wp-admin/plugin-editor.php – you’ll see an error message.

### Can I temporarily enable editing?

Yes, either deactivate the plugin or modify wp-config.php.

### Will this affect updates?

No, automatic background updates still work.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Lock PHP Files” is open source software. The following people have contributed 
to this plugin.

Contributors

 *   [ rokundev ](https://profiles.wordpress.org/rokundev/)

[Translate “Lock PHP Files” into your language.](https://translate.wordpress.org/projects/wp-plugins/lock-php-files)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/lock-php-files/), check
out the [SVN repository](https://plugins.svn.wordpress.org/lock-php-files/), or 
subscribe to the [development log](https://plugins.trac.wordpress.org/log/lock-php-files/)
by [RSS](https://plugins.trac.wordpress.org/log/lock-php-files/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.3

 * Updated tested version to 6.8
 * Fixed activation hook
 * Improved capability handling

#### 1.0.2

 * Added DISALLOW_FILE_MODS
 * Enhanced security layers

## Meta

 *  Version **1.0.4**
 *  Last updated **9 mois ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/lock-php-files/)
 * Tags
 * [disable editor](https://tah.wordpress.org/plugins/tags/disable-editor/)[file editor](https://tah.wordpress.org/plugins/tags/file-editor/)
   [protection](https://tah.wordpress.org/plugins/tags/protection/)[secure](https://tah.wordpress.org/plugins/tags/secure/)
   [security](https://tah.wordpress.org/plugins/tags/security/)
 *  [Advanced View](https://tah.wordpress.org/plugins/lock-php-files/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/lock-php-files/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lock-php-files/reviews/)

## Contributors

 *   [ rokundev ](https://profiles.wordpress.org/rokundev/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lock-php-files/)