Also (better late than never)... Not all browsers send the referer, or it is
even possible to disable sending the referer (possible through
mods/extensions) from a browser. I believe there are also some firewalls
that disable sending the referer.

Doing the below would result in blocking all these people from accessing
your site.

Correct me if I'm wrong.

Piet.

> -----Original Message-----
> From: Patrick Bierans [mailto:[EMAIL PROTECTED] 
> Sent: vrijdag 18 maart 2005 10:03
> To: [email protected]
> Subject: Re: [php-list] blocking direct access
> 
> 
> 
> > Try this
> > if(getenv("HTTP_REFERER")!="/path/index.php") die("Possible 
> attack");
> 
> try... - but don't trust.
> 
> 
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
> 
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list 
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to