Skip to content

Instantly share code, notes, and snippets.

@toppy368
Created February 27, 2017 07:01
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save toppy368/a4302cbf471f6eef7366572846de1eb8 to your computer and use it in GitHub Desktop.
這是LAMP底下,限制訪客無法瀏覽wp-login.php的程式碼,但是這只有白名單的IP才能連線,且治標不治本,若使用公共電腦將無法登入 !
# SET login IP for wp-login.php
<Files wp-login.php>
Order deny,allow
Deny from All
# SET login IP Example : 127.0.0.1 or 127.0.
Allow from 127.0.0.1
</Files>
# END SET login IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment