如何在joomla网站中限制基于网站的IP地址?

时间:2011-03-18 11:04:59

标签: joomla ip-address

如何在joomla网站中限制基于网站的IP地址?

2 个答案:

答案 0 :(得分:2)

您可以使用.htaccess

#require authentication of requests
AuthName "Restricted Area"
AuthUserFile /var/www/.htpasswd
AuthType basic
Require valid-user
#deny access to all, allow for selected ip's / domains
Order Deny,Allow
Deny from all
Allow from 123.123.123.123 googlebot.com google.com google-analytics.com
#if any of these rules are satisfied they may proceed
Satisfy Any

您需要添加密码文件。

答案 1 :(得分:1)

http://extensions.joomla.org/search?q=ip

还有更多扩展,这样做。你可以在这里找到一些!