我使用urlhttp://example.org/cpanellogin。
这是任何人都可以访问,似乎是一个坏主意,任何人都可以猜到它在那里。 我怎样才能隐藏它,并通过.htaccess访问只有我的IP地址,或者可能重命名,所以没有人会发现它?
添加一个htaccess,只允许通过ip可以做到这一点:
AuthName "My Secret Area" AuthType Basic <Limit GET POST> order deny,allow deny from all allow from 1.2.3.4 allow from .some.domain.org </Limit>