Hello!
To protect my pages from users who shouldn't see them, I defined a NT group (I use PHP on a IIS under Windows NT 4), that contains all users who are allowed to access my site. I gave "Read" permissions to this group on the folder which contains all php pages. (And the permission is inherited by all php pages.)
It all works great for users who are in the NT group. A user who is not in the group will see different things depending on which URL he uses.
If he uses the URL "http://www.myserver.com/mysite/"
a login window appears. If the user then says "Cancel" the browser gives a standard message "unauthorized" - which isn't really nice. I would like to have the browser show a page I created for this case. Does anybody know how to do this? (not create the page but make the browser show the page.)
If the user uses the URL "http://www.myserver.com/mysite/index.php?AnwId=1"
again a standard output of the browser is shown:
"CGI Error: The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:"
Again I would like to show the user another nice page I created. How can I do this?
Thanx for any help!
Eva