Hello, my younger brother has his own computer and internet connection (router) and we found out that he visits sites he shouldn't be visiting.

He knows how to clear the history of the websites he visits, but he doesn't know that there's a "Temporary Internet Files" folder with cookies and other files, that tell you from which website they came from.

I'd like to add the bad websites to his hosts file, but going to the properties of the cookies, copying the web addresses and pasting them into the hosts file manually takes quite a while.

Is there a way with VB to get these addresses from the filenames in the "Temporary Internet Files" folder, so I don't have to copy them all manually?