RE: [PHP] [posibleOT] Forcing entering te site thru index.php

2004-01-28 Thread Ralph
Hope this helps. -Original Message- From: Fernando M. Maresca [mailto:[EMAIL PROTECTED] Sent: Sunday, December 21, 2003 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] [posibleOT] Forcing entering te site thru index.php Hello everybody. Well, i'm trying to avoid access to the site for the mi

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Mon, Dec 22, 2003 at 01:09:37AM +0100, Andreas Magnusson wrote: : : You can use the Referer header found in $_SERVER['HTTP_REFERER'] to check : from which page the user comes from. Unfortunately, HTTP_REFERER is not guaranteed to exist. In fact, several Windoze firewall software actively bloc

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Andreas Magnusson
> > There are several ways to do this. The most obvious is with cookies. > > Set up your index.php to initially create a cookie that authorizes a > > user to look in the site. On the rest of your PHP pages, check that > > this authorization cookie exists. If not, redirect to index.php. > Thanks

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
> Not really. It depends on how you use your cookie. The cookie could be > some unique ID to some session-based system (whether you use PHP session > functions or not) that keeps a track of where the user is. So let's say > the user did the right thing, went to index.php, got a cookie, and went

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Sun, Dec 21, 2003 at 04:11:36PM -0300, Fernando M. Maresca wrote: : On Sun, Dec 21, 2003 at 01:03:43PM -0600, Eugene Lee wrote: : > On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote: : > : : > : Well, i'm trying to avoid access to the site for the middle. Say : > : there is a

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
On Sun, Dec 21, 2003 at 01:16:58PM -0600, Website Managers.net wrote: > Cookies are a possibility but not always functional. Many people have them shut off, > or services like WebTV do not support them. Two other possibilities are seccions and > POST variables. > > _SESSIONS_ > forma2.php > if((

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Website Managers.net
["password"] != "mypassword"])) { header("Location:index.php"); } Jim www.websitemanagers.net - Original Message - From: "Fernando M. Maresca" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 21, 2003 12:57 PM Subject: [PHP] [

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
On Sun, Dec 21, 2003 at 01:03:43PM -0600, Eugene Lee wrote: > On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote: > : > : Well, i'm trying to avoid access to the site for the middle. Say there > : is a initial page with a form and other pages that depends on this. Is > : there a w

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Eugene Lee
On Sun, Dec 21, 2003 at 03:57:24PM -0300, Fernando M. Maresca wrote: : : Well, i'm trying to avoid access to the site for the middle. Say there : is a initial page with a form and other pages that depends on this. Is : there a way to force users access the site thru the initial form page, : regard

[PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Fernando M. Maresca
Hello everybody. Well, i'm trying to avoid access to the site for the middle. Say there is a initial page with a form and other pages that depends on this. Is there a way to force users access the site thru the initial form page, regardless of the url? Something like this: lynx http://mysite/forma2