Forum

Redirect all IP's without my IP

Alex
28 January 2010, 16:04
How I can redirect all ip's from index.php to index.html with the exception of my ip?
Thanks.

Hiawatha version:
Operating System:
Hugo Leisink
28 January 2010, 16:09
That's not something Hiawatha can do.

What is it you try to achieve? Maybe there is another solution.
Alex
28 January 2010, 16:18
It is a pity,
I would like to redirect all visitors, as long as I have finished my servicing work.
Maybe you consider this function for the next version of Hiawatha?
Hugo Leisink
28 January 2010, 16:21
What I do in that case is allow only my IP address via an AccessList. Visitors from other IP address will get a 403 - Forbidden error. Via the ErrorHandler, you can show a html file instead of the default message. This configuration will do the trick for you:
VirtualHost {
...
StartFile = index.php
AccessList = allow <your IP address>, deny all
ErrorHandler = 403:/index.html
}
This topic has been closed.