Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using RefControl addon for firefox, to avoid sending the referer in the headers.

But now I'm wondering if the previous page or even my full history can be viewed by websites with javascript.

And what about bookmarks?

share|improve this question
up vote 2 down vote accepted

Accessing document.referrer via JavaScript while using RefControl gives the same modified value as in the HTTP header. You can verify this by running alert(document.referrer) in the Web Console with RefControl enabled (and configured) and then with RefControl disabled.

There has never been an official way to retrieve the addresses further down in the history. There are ways to detect if certain addresses have been visited in the past by testing if the browser applies a CSS rule for a :visited pseudo-class, but modern browsers have countermeasures against this.

Bookmarks are not accessible for JavaScript running in a normal web page, so there should be no way to get any information.

So the answer is no.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.