当前位置:网站首页>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
边栏推荐
- 【活动早知道】LiveVideoStack近期活动一览
- 没错,是水的一篇
- > Could not create task ‘:app:MyTest. main()‘. > SourceSet with name ‘main‘ not found. Problem repair
- 第一次使用gcc和makefile编写c程序
- The first place on the list - the carrying rate of front-end equipment is up to 10%, and the top 10 suppliers of digital key solutions
- Mysql database foundation: DML data operation language
- Feign远程调用fallback回调失败,无效果
- Online JSON to plaintext tool
- Online text batch inversion by line tool
- Opencv -- geometric space transformation (affine transformation and projection transformation)
猜你喜欢
Simple file transfer protocol TFTP
[today in history] June 19: iPhone 3GS launched; Pascal was born; Anti terrorist elite begins testing
Win11 ne peut pas faire glisser l'image sur le logiciel de la barre des tâches
Review the submission of small papers for 2022 spring semester courses
[today in history] June 1: Napster was founded; MS-DOS original author was born; Google sells Google SketchUp
Gateway微服務路由使微服務靜態資源加載失敗
音视频技术开发周刊 | 251
【活动早知道】LiveVideoStack近期活动一览
腾讯游戏发布40多款产品与项目 其中12款为新游戏
树莓派-环境设置和交叉编译
随机推荐
Built in functions for MySQL database operations
在线文本按行批量反转工具
What if win11 cannot use dynamic wallpaper? Solution of win11 without dynamic wallpaper
Usage differences between isempty and isblank
在线JSON转PlainText工具
买股票应该下载什么软件最好最安全?
apache、iis6、ii7独立ip主机屏蔽限制ip访问
[today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze
Heartless sword English Chinese bilingual poem 004 Meditation
《天天数学》连载53:二月二十一日
[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code
[today in history] June 17: the creator of the term "hypertext" was born; The birth of Novell's chief scientist; Discovery channel on
CMU puts forward a new NLP paradigm - reconstructing pre training, and achieving 134 high scores in college entrance examination English
Win11不能拖拽圖片到任務欄軟件上快速打開怎麼辦
Feign远程调用fallback回调失败,无效果
Unity WebGL打包后怎么运行(火狐配置)
第三批入围企业公示!年度TOP100智能网联供应商评选
JDBC与MySQL数据库
RichView TRVStyle ParaStyles
Arduino Esp8266 Web LED控制