問:請問屏蔽172.104.*這個IP段用.htaccess怎么寫?
*代表所有數字。
,請問屏蔽172.104.這個IP段怎么寫?
答:您好,
http://www.shinetop.cn/faq/list.asp?unid=681 參考幫助文檔處理即可,.htaccess的規則幫助文檔里面也有提供。
<IfModule mod_rewrite.c>
RewriteEngine On
#Block ip
RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR}&%{http:X-Real-IP} (127.0.0.1|8.8.8.) [NC]
RewriteRule (.*) – [F]
</IfModule>
127.0.0.1 表示具體屏蔽的IP地址;
8.8.8 表示屏蔽8.8.8.*這個IP段。
非常感謝您對我司的支持,謝謝!
問:小白,請問是不是這樣寫?
<IfModule mod_rewrite.c>
RewriteEngine On
#Block ip
RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR}&%{http:X-Real-IP} (172.104.) [NC]
RewriteRule (.*) – [F]
</IfModule>
答:您好,
<IfModule mod_rewrite.c>
RewriteEngine On
#Block ip
RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR}&%{http:X-Real-IP} (172.104.) [NC]
RewriteRule (.*) – [F]
</IfModule>
這個就是相當于屏蔽172.104.*.*這個IP段了,請知曉。
非常感謝您對我司的支持,謝謝!
問:請問屏蔽172.104.*這個IP段用.htaccess怎么寫?
*代表所有數字。
答:您好,
http://www.shinetop.cn/faq/list.asp?unid=681 參考幫助文檔處理即可,.htaccess的規則幫助文檔里面也有提供。
<IfModule mod_rewrite.c>
RewriteEngine On
#Block ip
RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR}&%{http:X-Real-IP} (127.0.0.1|8.8.8.) [NC]
RewriteRule (.*) – [F]
</IfModule>
127.0.0.1 表示具體屏蔽的IP地址;
8.8.8 表示屏蔽8.8.8.*這個IP段。
非常感謝您對我司的支持,謝謝!
問:小白,請問是不是這樣寫?
<IfModule mod_rewrite.c>
RewriteEngine On
#Block ip
RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR}&%{http:X-Real-IP} (172.104.) [NC]
RewriteRule (.*) – [F]
</IfModule>
答:您好,
<IfModule mod_rewrite.c>
RewriteEngine On
#Block ip
RewriteCond %{http:X-Forwarded-For}&%{REMOTE_ADDR}&%{http:X-Real-IP} (172.104.) [NC]
RewriteRule (.*) – [F]
</IfModule>
這個就是相當于屏蔽172.104.*.*這個IP段了,請知曉。
非常感謝您對我司的支持,謝謝!