Made a script that writes visitor domain name to file then reads the line to buffer, checks the buffer against a given in ereg line (any part of string match), then redirects visitor to one page or another depending upon match.
if (ereg ("some_domain.com",$buffer)) {
Seems to work okay.
Can someone please tell me how to include more than one string in the ereg line, i. e., if buffer matches this or this or this .... and so on, then redirect to page 1. If no match, send to page 2. Am rather new to all this and do not know if what I want to do is even possible.
Thanks for any help -- MarcusH
PS Later: Never mind. found the "domain|domain2|domain3" in the archives. Works fine and thank you.