Skip to content

Instantly share code, notes, and snippets.

Created Feb 27, 2017
What would you like to do?
這是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 : or 127.0.
Allow from
# END SET login IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment