Have you checked that your user is indeed coming from
"http://www.somedomain.com/index.html";?  There are lots of other ways
to load your homepage:

"http://xxx.xxx.xxx.xxx/index.html"; (ip address, not domain)
"http://www.somedomain.com/";
"http://www.somedomain.com";
"http://xxx.xxx.xxx.xxx";
"http://xxx.xxx.xxx.xxx/";

You'll have to check for all of them....

-Dan


--- tom hilton <[EMAIL PROTECTED]> wrote:
> Hi, I am using the $HTTP_REFERER variable to ensure that users of a
> website
> are getting to a certain page through a link from the index.html
> page, and
> not going straight to the page through a bookmark.
> 
> $page=$HTTP_REFERER;
> if ($page!="http://www.somedomain.com/index.html";)
>   {
>   echo "<h3>Please log in through the home page</h3><br>";
>   echo "<META HTTP-EQUIV='Refresh'
> CONTENT='1;URL=http://www.somedomain.com/index.html'>";
>   }
>  This is working fine for most users, but one user is telling me that
> even
> though she is following the link from the index page, she's still
> getting
> the error message,  and are being bounced back to the index page. 
> She is
> using Internet Explorer 6.0.  Are there any security or privacy
> settings
> that might restrict use of the $HTTP_REFERER variable?  Or is there a
> better
> way to make sure users follow links to pages, rather than bookmarking
> and
> going straight to a page?  Thanks for any help you can give me.
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to