I'm trying to prevent users from seeing a certain part of the web site. (That part I can do.) What I want to do next is to use a CGI script to check the IP number of the user and see if he may access the restricted area or not. (That part I can do as well.) The third part I'm having trouble with.
I want a SSI to use the returned value from the CGI script (either a yes or a no) and then, using XSSI, display a button to that section (if allowed) or don't display anything at all (if not allowed). I'm unable to use the return value in any further SSI action. Any help???
What I don't really want to do (but have to untill another solution comes up) is to have the CGI script generate the complete page.