<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 14, 2015 at 1:39 PM, R P Herrold <span dir="ltr"><<a href="mailto:herrold@owlriver.com" target="_blank">herrold@owlriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":229" class="a3s" style="overflow:hidden">is there a purpose to unsolicited advice and prediction of<br>
gloom? The matter is trivially done with the REMOTE_ADDR<br>
variable and a header() command in PHP, and any mature CGI<br>
environment<br>
<br>
I'll poke at a proof of concept backed (by a database so that<br>
it is readily altered as to the redirect page by a site<br>
administrator). Static coding is even easier (load an array<br>
with IP's to go to the execption page, test if the REMOTE_ADDR<br>
is in_array(), and alternatively fall to a different header()<br>
<br>
Here is real code to that effect. Problem is that it mixes<br>
data (the IP / URL pairs, and code, which is not usually a<br>
very scalable approach, along with otehr reasons</div></blockquote></div><br><br><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(51,0,51)">Russ,<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(51,0,51)">I didn't see any harm or foul for providing some experience-driven insight. Look at it this way: Keith may not always be the owner of this, and if he hands this off down the road, it may not be to someone as skilled/capable. <br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(51,0,51)">I certainly don't mean to offend Keith for his question or direction, I just wanted to provide a slight twist that might be a better choice that's more easily maintained down the road.<br><br></div></div></div>