erotsppa
erotsppa

Reputation: 15031

Is it possible to find out which page the user was previously browsing?

Is it possible to find out which page the user was previously browsing from current web page?

Upvotes: 1

Views: 101

Answers (4)

Mikeon
Mikeon

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

lutz
lutz

Reputation:

You can look at the Referer HTTP header.

Upvotes: 0

madcolor
madcolor

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

knittl
knittl

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

Related Questions