如何删除网址的所有数据Chrome存储区? [英] How to remove all data chrome stores for a url?

查看:109
本文介绍了如何删除网址的所有数据Chrome存储区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TL; DR 我想让chrome处于从未访问过某个URL的状态.

TL;DR I'd like to make chrome's state as though it had never, ever visited a certain url before.

长版:

我正在处理一个应用程序,并且有一个关于XSS漏洞的复杂问题可以是由浏览器记住"有关先前会话的某些信息引起的,这可能导致随机数不匹配.结果是,我必须绝对确保当我访问应用程序URL时,chrome尚未从任何先前的会话中记住"它的任何内容.

I'm working on an application, and have a complicated problem regarding XSS vulnerabilities, which could be caused by the browser 'remembering' something about a previous session which could cause nonces to not match. The upshot is that I need to be absolutely sure that when I visit the app url that chrome hasn't 'remembered' anything about it from any previous session(s).

这是我尝试过的:

  • 首先,访问:chrome://settings/cookies/detail?site=example.com并删除所有cookie
  • 其次,访问:chrome://settings/clearBrowserData并删除所有内容(不幸的是,一次似乎无法同时使用一个网址?)
  • Firstly, visiting: chrome://settings/cookies/detail?site=example.com and deleting all the cookies
  • Secondly, visiting: chrome://settings/clearBrowserData and deleting everything (unfortunately, this doesn't seem to be possible for one url at a time?)

我可以证明chrome尚未完全忘记"该站点.证明很复杂,但是基本上,如果我在URL上放置了一个不同的应用程序(具有不同的flavicon),请访问该URL,然后关闭该选项卡,然后完成上述步骤以清除浏览器数据和cookie(此时chrome 应该忘记了一切).但是,当我将另一个应用程序放置在相同的URL并访问该URL时,chrome使用了 old 应用程序的flavicon,(我认为)证明它并没有完全忘记它对URL的了解!

I can prove that chrome has not completely 'forgotten' the site. The proof is complicated, but basically if I place a different app (with different flavicon) at the url, visit the url, then close out that tab, then complete the steps above to clear browser data and cookies (at this point chrome should have forgotten everything). Yet when I put a different app at the same url and visit the url, chrome uses the old app's flavicon, which (I think) proves that it hasn't completely forgotten everything it knew about the url!

所以,这是长版本.但是,TL; DR只是要使其像chrome从未访问过某个站点一样(最好不要更改为其他站点存储的数据,或者做一些诸如完全卸载/重新安装之类的极端操作)

So, that's the long version. But, the TL;DR is to simply make it as though chrome had never visited a site (preferably without altering data stored for other sites, or doing anything extreme like completely uninstalling/reinstalling)

要清空高速缓存并进行硬重装,请按 cmd + opt + j 调出开发人员控制台,然后右键单击刷新并选择清空缓存并重新加载".但是,旧的flavicon still 仍然存在,表明并非该站点中的所有信息都已被删除.

To empty cache and hard reload, press cmd + opt + j to bring up the developer console, then right click on refresh and select 'Empty Cache and Hard Reload'. Yet the old flavicon still remains, indicating that not all info from that site was removed.

推荐答案

大约2个小时后,我想出了以下技术来尝试删除黄酮,但即使在执行以下所有步骤后,我仍会执行以前的应用仍保留在Chrome的内存"中

After about 2 hours, I figured the following techniques to try to remove the flavicon, but even after all of the following steps, as the flavicon from a previous app still remains in Chrome's 'memory'!

执行问题的前两个步骤:

Do the first two steps from the question:

  1. 访问:chrome://settings/cookies/detail?site=example.com并删除所有cookie(用有问题的URL替换example.com)
  2. 访问:chrome://settings/clearBrowserData并删除所有内容(很高兴知道如何针对单个站点执行此操作)
  3. 右键单击在网址最左侧的小图标上(如果使用https,则为锁,如果使用http,则为字母"i").
  4. 进入列出的每个类别(例如"Cookies",网站设置"等)并将其全部删除
  1. visit: chrome://settings/cookies/detail?site=example.com and delete all the cookies (replace example.com with the url in question)
  2. visit: chrome://settings/clearBrowserData and deleting everything (would be great to know how to do this for a single site)
  3. Right click on the tiny icon to the immediate left of the url (it will be a lock if using https, or the letter 'i' if using http).
  4. Go into each of categories listed (e.g. 'Cookies', 'Site Settings' etc) and delete them all

我没有找到从chrome中删除所有数据的解决方案,但是,我发现您可以使用开始一个完全隔离的chrome会话.这些说明

I didn't find a solution for removing all data from chrome, however, I found you can start a completely isolated chrome session with these instructions

这篇关于如何删除网址的所有数据Chrome存储区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆