开发者

how to restrict website based ip address in joomla site?

开发者 https://www.devze.com 2023-02-18 03:25 出处:网络
how to restrict website based ip开发者_如何学Go address in joomla site?You can use .htaccess #require authentication of requests

how to restrict website based ip开发者_如何学Go address in joomla site?


You can use .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

You'll need to add a password file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号