如何限制joomla站点中基于网站的ip地址?

如何限制joomla站点中基于网站的ip地址?,joomla,ip-address,Joomla,Ip Address,如何限制joomla站点中基于网站的ip地址? 有更多的扩展,这样做。你可以在这里找到一些 您可以使用.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

如何限制joomla站点中基于网站的ip地址?

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

您可以使用.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
您需要添加一个密码文件