Reputation: 15031
Is it possible to find out which page the user was previously browsing from current web page?
Upvotes: 1
Views: 101
Reputation: 10749
Try referrer (server side), but other than that - no.
It can't be done client side for security reasons - imagine you page checking visitors browse history - a big no no.
Upvotes: 0
Reputation: 8170
Only if the page links to your page. Then you can look at the referrer.
http://en.wikipedia.org/wiki/HTTP_referrer
Or if it's a page on your domain, you can use analytics.
http://www.google.com/analytics/
Upvotes: 1
Reputation: 265547
if you’re using PHP you can use $_SERVER['HTTP_REFERER']
but this information can be faked by browsers, so it’s not 100 % foolproof
Upvotes: 2