.htaccess-仅允许从某些IP和IP范围进行访问
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了.htaccess-仅允许从某些IP和IP范围进行访问相关的知识,希望对你有一定的参考价值。
See here for Amazon EC2 rangehttps://forums.aws.amazon.com/ann.jspa?annID=877
order deny,allow deny from all allow from 50.16.160.70 #These are the Amazon EC2 server IP's. Sort of. allow from 216.182. allow from 72.44. allow from 67.202. allow from 75.101. allow from 174.129. allow from 204.236. allow from 184.73. allow from 184.72. allow from 184.72. allow from 50.16. allow from 50.17. allow from 216.236. allow from 184.72. allow from 50.18. allow from 79.125. allow from 46.51. allow from 46.51. allow from 46.137. allow from 175.41. allow from 122.248.
以上是关于.htaccess-仅允许从某些IP和IP范围进行访问的主要内容,如果未能解决你的问题,请参考以下文章
htaccess 命令仅允许来自同一服务器的请求(不指定 IP)