Return to Snippet

Revision: 57167
at May 18, 2012 20:56 by aruldave


Initial Code
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
RewriteRule .? http://www.example.com [L]

Initial URL
http://www.totalworkflow.co.uk

Initial Description
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")

Initial Title
.htaccess script to block remote access and allow local ip

Initial Tags
regex, php, server, htaccess

Initial Language
Apache