Re: Checking an URL
| From: | Christian Reiniger | Date: | Wed, 23 May 2001 14:37:10 +0000 |
| Subject: | Re: Checking an URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-54071@lists.php.net to get a copy of this message | ||
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