On Wednesday 23 May 2001 07:19, YoBro wrote:
> Hello Everybody :-)
>
> I've been trying to figure something out, but just cant find the right
> answer.
>
> I need some code to check that the page is being viewed from a specific
> url. EXAMPLE: Not just http://www but https://www1 if it is
> https://www1 then show the page otherwise echo a message.
>
> The reason is I don't want people to view certain pages without the
> secure server connection.
You could check $SERVER_PORT whether the normal http port or the ssl one
is used.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
/* you are not expected to understand this */
- from the UNIX V6 kernel source
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]