.htaccess script to block remote access and allow local ip


/ Published in: Apache
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. RewriteEngine on
  2. RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1$
  3. RewriteRule .? http://www.example.com [L]

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.