通过Rewrite实现特定IP访问网站

为了防止同一个IP过渡访问网站造成服务器资源占用过大,比如估计采集,或者爬虫爬行等。这样需要一些有效的手段来封闭恶意网站的IP。如果服务器支持rewrite模块,通过Rewrite可以轻松实现。


以上代码的以上是让11.11.11.11这个IP自动跳转到google。

封闭多个IP的方法类似:


申明:以上均为Byrd原创,转载于原个人博客!文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/rewrite-ip-websites/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/rewrite-ip-websites/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

On this day in past years
March
14
 
Byrd
  • by Published onMarch 14, 2014
  • 原文链接:https://note.t4x.org/basic/rewrite-ip-websites/
匿名

Comment

Anonymous

Slide puzzle verification.