Last active
December 17, 2015 05:39
-
-
Save wokamoto/5559781 to your computer and use it in GitHub Desktop.
[WordPress] ユーザー名「admin」を拒否する。wp-config.php に書いておいてね
This file contains 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 | |
if ( isset($_POST['log']) && $_POST['log'] === 'admin' ) { | |
header("HTTP/1.1 403 Forbidden"); | |
die(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment