Google-chrome – Chrome/Chromium – disable HTML5 LocalStorage and Databases for all webpages /or ask user

chromiumgoogle-chromelocal-storage

My question is about fine tuning of Chrome or Chromium browser. It have support of new generation of cookies: HTML5 LocalStorage and Databases. Some ad sites uses LocalStorage to do user tracking, some other sites uses this too. Also, chrome plugins (extensions) often uses localstorage to keep settings.

I want to disable LocalStorage&DB for all sites completely or get it in "ask user" mode. But I want to use extensions which uses LocalStorage and DB.

Is it possible?

Best Answer

Chrome provides the ability to block HTML5 LocalStorage as part of its cookie-blocking functionality. Since both technologies ultimately allow websites to store and retrieve data on end-user devices it makes sense to manage them in the same way.

Just click the Menu icon and choose Options (or Preferences on UNIX-like platforms), click Show advanced settings..., select Content Settings, and choose the Block any sites from setting data option:

chrome cookie settings

While you're there, you can select Manage Exceptions to whitelist certain sites, or All Cookies and Site Data to manage or delete existing data.

Now when you visit a site, a small icon will appear indicating cookies or LocalStorage has been blocked: cookie blocked icon screenshot

If you click on that, choose Show cookies and other site data, and select the Blocked tab, you can see what data the site tried to save and whitelist sites on a temporary or permanent basis.

blocked cookies display

The Chrome authors are not big fans of fiddly knobs, so they're unlikely to add ones to disable individual storage methods. On the flip side, you can be reasonably sure any future storage methods will be blocked by the same mechanism without hunting for more checkboxes.