开发者

blocking access to my apache server

开发者 https://www.devze.com 2023-03-02 20:17 出处:网络
According to this site: http://httpd.apache.org/docs/2.2/howto/access.html I need to use something like the script below to block access to my site for everyone except specific ip addresses:

According to this site: http://httpd.apache.org/docs/2.2/howto/access.html

I need to use something like the script below to block access to my site for everyone except specific ip addresses:

Order deny,allow
Deny from all
Allow 开发者_Go百科from dev.example.com

It's not clear from that site, where I type this script.

I am using Ubuntu 10.04 as my development machine.


Write exact IPs or it's starting part including ending dot under allow from and you are done.

Order deny,allow
Deny from all
Allow from 192.168.1.1
Allow from 192.168.1.2
Allow from 10.0.

BTW, belongs to ServerFault.

0

精彩评论

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

关注公众号