Skip to content

Instantly share code, notes, and snippets.

@toppy368 toppy368/.htaccess
Created Feb 27, 2017

Embed
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 : 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
You can’t perform that action at this time.