Last active
July 20, 2024 13:07
-
-
Save ianpegg/3a4ac333c3eeaed9309fa5dc6e9fa8c0 to your computer and use it in GitHub Desktop.
Intentionally empty index file to prevent directory listing on poorly configured servers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Empty Index File | |
* Plugin URI: https://gist.github.com/ianpegg/3a4ac333c3eeaed9309fa5dc6e9fa8c0 | |
* Description: Prevents directory listing on mis-configured servers. | |
* Version: 1.0.0 | |
* Author: Ian Pegg | |
* Author URI: https://eggcupwebdesign.com | |
* php version 7.4.15 | |
* | |
* Intentionally empty index file. | |
* This file exists to prevent the server returning directory listings | |
* on mis-configured servers. Do not delete unless you know your | |
* Apache server is configured with 'Options -Indexes'. | |
* php version 7.4.15 | |
* | |
* @category Security | |
* @package WordPress | |
* @author Ian Pegg <[email protected]> | |
* @license GNU/GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt | |
* @link https://eggcupwebdesign.com | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment