Sunday, November 12, 2006

A Better Hack To Get Browser History Urls

I know where you've been descibes a technique to determine if user has been to certain URLS using a CSS hack to bypass security restrictions. Information about where a user has been is potentailly valuable. However, the above technique is limited in that it can only determine if the user has been to a hard-coded set of URLs (thus, we can tell if a user has been to yahoo.com, but we cannot get a complete list of exactly where they have been in general). In this post, I describe a hack that overcomes this limitation and gets a complete list of URLs from the browser history. This hack only works in Safari, as far as I know (it does not work in Firefox).

So, go ahead and try it (nothing evil will happen, and no data will be stored if you click on submit):
Show my browser history

The basic idea behind the hack is this:

From JavaScript, we will open a new window, and pass it a handle to the current window. Then, the new window loops through the following procedure:

while the parent window's history still has items in it:
make the parent window go back one step in history (with history.go(-1))
get the location url for the parent window

The source code can be obtained here:
hist.html source

7 Comments:

Anonymous Anonymous said...

Hi,

When i tried to read the other solution - using CSS hack, the page is no longer there.

Is it the right URL, or has the author removed his/her page?

The CSS hack might be exactly what i need.

Thanks a lot in advance!

5:18 PM  
Anonymous Anonymous said...

Hi, the anonymous guy, check this out, http://jeremiahgrossman.blogspot.com/2006/08/i-know-where-youve-been.html

12:26 AM  
Blogger AMIT said...

Oh you have provided a good hacking trick.

Florida Drug Rehab

10:28 PM  
Anonymous viagra online said...

in some cases is better to get this information, when you got it you can protect some special information and in this way get a better browser and a better history.

3:01 PM  
Anonymous shredding San Antonio said...

Value every single data or records that you have because we will never know when our personal information will be compromised especially if we do not have any hard copies of our files and they are just stored in our hard drives. This will make it easier for those who have ill-minded plans against us. Your files and documents will not be that safe to
begin with. There is no harm in sharing your knowledge with others but you also have to ensure yourself that all your hard work are kept intake and inaccessible to others. All of us rely on the validity of the information handed to us and it is also up to us to take the necessary precautions in safeguarding our very own personal information.

2:04 AM  
Blogger oakleyses said...

vans, moncler, louis vuitton, ugg,uggs,uggs canada, ugg uk, replica watches, louis vuitton, hollister, lancel, thomas sabo, canada goose outlet, moncler uk, coach outlet, karen millen uk, juicy couture outlet, canada goose outlet, canada goose outlet, canada goose, canada goose, links of london, converse, canada goose jackets, pandora jewelry, swarovski, barbour uk, juicy couture outlet, moncler outlet, ugg,ugg australia,ugg italia, nike air max, swarovski crystal, moncler, louis vuitton, louis vuitton, pandora uk, marc jacobs, doudoune moncler, gucci, ray ban, canada goose, pandora jewelry, hollister, wedding dresses, montre pas cher, moncler, pandora charms, doke gabbana, toms shoes, supra shoes, canada goose uk, barbour, louis vuitton, moncler outlet, ugg

9:55 PM  
Blogger Unknown said...

zhengjx20160702
coach factory outlet online
oakley canada
ralph lauren outlet
replica rolex watches
adidas uk
coach outlet canada
jordan 11
retro 11
cheap basketball shoes
cheap oakley sunglasses
rolex watches
coach outlet store online clearances
copy watches
oakley sunglasses outlet
jordan 3s
ray bans
ralph lauren
kd 7 shoes
coach factory outlet
cheap ray ban sunglasses
kate spade handbags
oakley vault
true religion outlet store
coach outlet
oakley outlet
gucci handbags
coach outlet
nfl jerseys
cheap toms shoes
christian louboutin shoes
nike roshe run
louboutin shoes
kd 8
michael kors outlet
hollister clearance
ralph lauren
michael kors outlet
ray ban sunglasses outlet
lebron 12

7:28 PM  

Post a Comment

<< Home