On Monday, September 26, 2011 5:45:51 PM UTC-4, Kenneth wrote:
>
> Is it possible to detect from what address an user arrives to an web2py 
> page?
>
In general, you can use request.env.http_referer, but for a redirect, I'm 
not sure if that will be the redirecting URL or the original URL (it may 
depend on the browser). As an alternative, maybe add the redirecting URL to 
the query string so web2py can read it from request.vars (e.g., 
http://[web2py_url]?referer=http://[referring_url]).
 

> Do you think a web2py would be too slow for this very simple task. 
> A guess PHP would be much faster as it doesn�t use a database at all.
>
You do not need to use a database with web2py if none is required for your 
task -- simply don't define one in your model file.

Anthony

>

Reply via email to