当前位置:网站首页>Apache, IIS6, ii7 independent IP host shielding restricts IP access
Apache, IIS6, ii7 independent IP host shielding restricts IP access
2022-06-28 03:04:00 【wwwwestcn】
notes :
If only shielding IP 8.8.4.4 Then write (8.8.4.4)
If only shielding IP paragraph 8.8.8. Then write (8.8.8.)
For shielding multi-stage intermediate | separate , Such as (8.8.4.4|8.8.8.)
Linux Next Rules file .htaccess( Create... By hand .htaccess File to the site root directory )
<IfModule mod_rewrite.c>
RewriteEngine On
#Block ip
RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR}&%{http:X-Real-IP} (8.8.4.4|8.8.8.) [NC]
RewriteRule (.*) - [F]
</IfModule>
windows2003 Next Rules file httpd.conf
If the assistant environment of our company is installed, please press iis6、iis7、apache、nginx Pseudo static and setting 301 Redirect ( apply vps Virtual machine server ) - Western Digital Help Center Open the pseudo static component , Then add the following rules .
If it is a pure version system , Please press iis6 Manually configure a single site pseudo static ( apply vps Virtual machine server ) - Western Digital Help Center Open the pseudo static component , Then configure in the configuration file according to the following system rules
#Block ip
RewriteCond %{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP} (8.8.4.4|8.8.8.) [NC]
RewriteRule (.*) - [F]
windows2008 Next Rules file web.config ( Create... By hand web.config File to the site root directory )
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="band ip" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP}" pattern="(8.8.4.4|8.8.8.)" />
</conditions>
<action type="AbortRequest" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Link to the original text :https://www.west.cn/faq/list.asp?unid=822
边栏推荐
- [today in history] June 8: the father of the world wide web was born; PHP public release; IPhone 4 comes out
- Single page application (SPA) hash route and historical API route
- 论文阅读:Generative Adversarial Transformers
- How to judge that the thread pool has completed all tasks?
- CMU提出NLP新范式—重构预训练,高考英语交出134高分
- How to run unity webgl after packaging (Firefox configuration)
- 业内首个!可运行在移动设备端的视频画质主观体验MOS分评估模型!
- [today in history] May 29: the pioneer of sharing software was born; Chromebox launched; VoodooPC founder was born
- Which securities platform is the best and safest for a novice to open a stock trading account
- MFC CString to LPVOID
猜你喜欢
![[plug in -statistical] statistics the number of code lines and related data](/img/84/ad5e78f7e0ed86d9c21cabe97b9c8e.png)
[plug in -statistical] statistics the number of code lines and related data
![[today in history] June 17: the creator of the term](/img/00/30ccc2f54415a6aca000c42e277dc3.png)
[today in history] June 17: the creator of the term "hypertext" was born; The birth of Novell's chief scientist; Discovery channel on

喜新厌旧?IT公司为什么宁愿花20k招人,也不愿涨薪留住老员工

音视频技术开发周刊 | 251
![[today in history] June 10: Apple II came out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word](/img/0d/9f99eb3dcb73c912987b81fba71890.png)
[today in history] June 10: Apple II came out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born

Initial linear regression

Writing C program with GCC and makefile for the first time

2-5 basic configuration -win2003 add attack surface
![Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]](/img/5f/24fd110a73734ba1638f0aad63c787.png)
Packet capturing and sorting out external Fiddler -- understanding the toolbar [1]

树莓派-环境设置和交叉编译
随机推荐
PSM summary
Heartless sword English Chinese bilingual poem 004 Meditation
Opencv -- geometric space transformation (affine transformation and projection transformation)
ADB double click the power key command
isEmpty 和 isBlank 的用法區別
榜单首发——前装搭载率站上10%大关,数字钥匙方案供应商TOP10
Domain Name System
简单ELK配置实现生产级别的日志采集和查询实践
[today in history] June 6: World IPv6 launch anniversary; Tetris release; Little red book established
Raspberry pie - environment settings and cross compilation
【522. 最长特殊序列 II】
Which securities platform is the best and safest for a novice to open a stock trading account
分布式事务TCC浅析
测试要掌握的技术有哪些?软件测试必懂的数据库设计大全篇
MFC common current path
在线JSON转PlainText工具
Desai wisdom number - histogram (column folding mixed graph): ratio of rental price to rental income in the graduation quarter of 2021
分布式事务解决方案Seata-Golang浅析
Interview: is bitmap pixel memory allocated in heap memory or native
PSM总结