Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Created July 11, 2022 08:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lynt-smitka/5f10ded25a29de5ece0c1c22a1b14c99 to your computer and use it in GitHub Desktop.
Save lynt-smitka/5f10ded25a29de5ece0c1c22a1b14c99 to your computer and use it in GitHub Desktop.
.htaccess to the "/wp-admin" directory to limit IP address
<RequireAny>
Require ip your.ip.address.here
</RequireAny>
<Files admin-ajax.php>
Require all granted
</Files>
<Files admin-post.php>
Require all granted
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment