Reputation: 1033
Off recently i have got some interest in Windows application and im currently doing some programming based on windows application.
Now im thinking to create a Windows(desktop) application using which i can delete the history of all the major browsers(ie chrome,firefox,safari,opera,ie). Among which im emphasizing on chrome and firefox. I have achieved the process of deleting the browser history of IE due to its inbuilt functionality in windows os using the follwing code
var p = new Process();
p.StartInfo.CreateNoWindow = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "rundll32.exe";
p.StartInfo.Arguments = "InetCpl.cpl,ClearMyTracksByProcess 1";
p.Start();
p.WaitForExit();
And it works fine. Now coming over to other browsers.
After much of research i have found various things.
Programmatically acess Google chrome history
Also i learned that the various places where the details of the browsers are stored are:
For Chrome: C:\Users\\AppData\Local\Google\Chrome\User Data
For FireFox : C:\Users\\AppData\Local\Mozilla\Firefox\Profiles and C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles
For Opera: C:\Users\\AppData\Local\Opera\Opera and C:\Users\\AppData\Roaming\Opera\Opera
For Safari: C:\Users\\AppData\Local\Apple Computer\Safari and C:\Users\\AppData\Roaming\Apple Computer\Safari.
Now i have done a simple code using which i am able to delete all the history of all the browsers by just deleting the contents of the Specific folders that are described above.
And while thinking globally im stuck with quiet few problems.
In all the PC's the folder location are not in the same place. Ex: In another PC the Appdata folder was missing. So i was unable to make my application work on other system.
If a PC is logged in by the admin then also locating the Appdata folder is difficult.
If a user uses Portable Browser such as Opera or Safari where does the history get saved?
So over come these problems i was thinking about a different way. But im not sure what should i follow.?
I discovered that CC Cleaner deletes all the browsing history irrespective of the locations they are saved in. How does CC Cleaner do that? Is it possible to find the location of stored history using the System registry?
Or is there any better way to clear all the browsing history?
To summarize i dont want to access the appdata folder to delete the browsing history. Is there any other alternative?
Any sample codes/links would be helpful.
Thanks.
Upvotes: 0
Views: 7428
Reputation: 898
There are ways to go about preventing the user from going back a page, but to completely clear your entire browsing history is not possible. let alone deleting any of it. if you want to delete then you should access AppData & delete a folder, which contain history.
Upvotes: 1