如何在Chrome中启用或禁用多个文件下载
By default, Google Chrome asks for confirmation when a site tries automatically to download files in succession. However, if you want to block all attempts regardless of the site, or maybe you would rather blacklist a specific website, here’s how.
默认情况下,当网站尝试自动连续下载文件时,谷歌浏览器会要求您确认。 但是,如果您想阻止所有尝试,无论站点是什么,或者您宁愿将特定网站列入黑名单,请按照以下方法操作。
Sometimes when you download a file in a browser, the website will try to download another file immediately after the first finishes. While there are legitimate circumstances—like a file conversion site—there are sites who used it maliciously to force virus or harmful scripts to download without your knowledge or permission. However, for security reasons, Google Chrome now prompts you when a website tries to download multiple files.
有时,当您在浏览器中下载文件时,网站会在第一个文件完成后立即尝试下载另一个文件。 尽管存在合法的情况(例如文件转换站点),但仍有一些站点恶意地使用它来迫使病毒或有害脚本在您不知情或未经许可的情况下进行下载。 但是,出于安全原因,当网站尝试下载多个文件时,Google Chrome现在会提示您。
如何禁用多个自动文件下载 (How to Disable Multiple Automatic File Downloads)
Fire up Chrome, click the menu icon, and then click “Settings.” Alternatively, you can type chrome://settings/
into the Omnibox to go directly there.
启动Chrome,单击菜单图标,然后单击“设置”。 另外,您也可以在多功能框中输入chrome://settings/
,以直接转到此处。
Once in the Settings tab, scroll down to the bottom and click “Advanced.”
进入“设置”标签后,向下滚动到底部,然后点击“高级”。
Scroll down to the Privacy and Security section and click on “Site Settings.”
向下滚动到“隐私和安全性”部分,然后单击“站点设置”。
Scroll down the list of settings until you see the “Automatic Downloads” option. Click on it.
向下滚动设置列表,直到看到“自动下载”选项。 点击它。
By default, the feature is set to ask permission when a site tries to download files in succession. This is the recommended behavior, but if you want to block all sites from downloading multiple files automatically, toggle the switch to the Off position.
默认情况下,该功能设置为在站点尝试连续下载文件时询问权限。 这是建议的行为,但是如果要阻止所有站点自动下载多个文件,请将开关切换到“关闭”位置。
That’s it. No longer will you receive a prompt when a site tries to download multiple files one after the other.
而已。 当站点尝试一个接一个地下载多个文件时,您将不再收到提示。
如何启用自动文件下载但阻止特定站点 (How to Enable Automatic File Downloads but Block Specific Sites)
Globally disabling automatic successive file downloads isn’t recommended, as it will block every attempt regardless of where it comes from, even legitimate ones that you might expect to download automatically. However, if you want to keep this feature enabled and block specific websites that you trust to download multiple files, you can blacklist a site instead.
不建议全局禁用连续的自动文件下载,因为它会阻止每次尝试,无论它来自何处,甚至包括您可能希望自动下载的合法文件。 但是,如果要启用此功能并阻止可信任的特定网站下载多个文件,则可以将一个网站列入黑名单。
Head back to Settings > Site Settings > Automatic Downloads, or type chrome://settings/content/automaticDownloads
into the Omnibox and hit Enter. Toggle the switch to the On position.
返回设置>网站设置>自动下载,或在多功能框中输入chrome://settings/content/automaticDownloads
,然后按Enter。 将开关拨到On位置。
Now, click on the “Add” button next to the Block heading.
现在,单击“块”标题旁边的“添加”按钮。
Type in the URL of the website that you want to blacklist from automatically downloading successive files, then click “Add.”
输入要从自动下载连续文件中列入黑名单的网站的URL,然后单击“添加”。
When you provide the web address—if you want to block the whole site—use the [*.]
prefix to catch all subdomains from the website as in the example above.
当您提供网址时(如果要阻止整个网站),请使用[*.]
前缀从网站上捕获所有子域,如上例所示。
That’s all there is to it. Repeat this process for as many websites that attempt to download multiple files. Whenever this website tries to download multiple files, Chrome automatically blocks its attempt and doesn’t bother you with a prompt.
这里的所有都是它的。 对尝试下载多个文件的许多网站重复此过程。 每当此网站尝试下载多个文件时,Chrome都会自动阻止其尝试,并且不会提示您。
翻译自: https://www.howtogeek.com/428416/how-to-enabledisable-multiple-file-downloads-in-chrome/