Created
February 27, 2017 07:01
Star
You must be signed in to star a gist
這是LAMP底下,限制訪客無法瀏覽wp-login.php的程式碼,但是這只有白名單的IP才能連線,且治標不治本,若使用公共電腦將無法登入 !
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
# 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