Re: Checking an URL

From: Date: Thu, 24 May 2001 05:07:01 +0000
Subject: Re: Checking an URL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-54160@lists.php.net to get a copy of this message
Don't suppose you have some example code on how to do that? "Christian Reiniger" <creinig@mayn.de> wrote in message news:01052316371001.00599@chrisbig... 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#54160) next »