Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Last active December 17, 2015 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wokamoto/5559781 to your computer and use it in GitHub Desktop.
Save wokamoto/5559781 to your computer and use it in GitHub Desktop.
[WordPress] ユーザー名「admin」を拒否する。wp-config.php に書いておいてね
<?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