.htaccess脚本阻止远程访问并允许本地ip
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了.htaccess脚本阻止远程访问并允许本地ip相关的知识,希望对你有一定的参考价值。
The below code lets you stop access from the remote IPs excluding your local machine IP. This code can be setup where someone wants to provide an internal access and restricting the external access for the web service.- [Automated Predictive Dialler Software for Call Centres](http://touchstarccs.co.uk/ "Automated Predictive Dialler Software for Call Centres")
RewriteEngine on RewriteCond %{REMOTE_ADDR} !^127.0.0.1$ RewriteRule .? http://www.example.com [L]
以上是关于.htaccess脚本阻止远程访问并允许本地ip的主要内容,如果未能解决你的问题,请参考以下文章