为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Is there an easy way to block specific cookies (like I used to do in Chrome)?

more options

When working with Google Chrome (which I used until a months back, before I gave FireFox a shot) I used the cookies exceptions option to block all cookies of specific domains. Whenever I was on any arbitrary page, I simply clicked on page info, selected an unwanted cookie and clicked "block". In FireFox, I only see the "delete" option for cookies but no easy way to block them?

As an inconvenient option, I would consider adding unwanted domains to the cookies exceptions. However, with FireFox, I have to specify the exact domain; back with Chrome I had the option to use wildcards which were extremely necessary to stop things like a4621041136.cdn.optimizely.com (simply add *.optimizely.com to the exceptions). Also, I don't want to specify http://* and https://* for each and every domain if in know that I don't want to accept ANYthing from that specific domain.

I would also consider writing a small extension that reads all cookies of a specific page and give me the option to block things BUT I understand that I don't have access to the blocked cookies list from within anyy extension; I can only delete cookies once they're set.

What is the suggested way to achieve my goal here (block all cookies of certain domains ... like *.optimizely.com). You can assume that I have programming skills and could write an extension (if that's the only / best way).

Thanks

When working with Google Chrome (which I used until a months back, before I gave FireFox a shot) I used the cookies exceptions option to block all cookies of specific domains. Whenever I was on any arbitrary page, I simply clicked on page info, selected an unwanted cookie and clicked "block". In FireFox, I only see the "delete" option for cookies but no easy way to block them? As an inconvenient option, I would consider adding unwanted domains to the cookies exceptions. However, with FireFox, I have to specify the exact domain; back with Chrome I had the option to use wildcards which were extremely necessary to stop things like a4621041136.cdn.optimizely.com (simply add *.optimizely.com to the exceptions). Also, I don't want to specify http://* and https://* for each and every domain if in know that I don't want to accept ANYthing from that specific domain. I would also consider writing a small extension that reads all cookies of a specific page and give me the option to block things BUT I understand that I don't have access to the blocked cookies list from within anyy extension; I can only delete cookies once they're set. What is the suggested way to achieve my goal here (block all cookies of certain domains ... like *.optimizely.com). You can assume that I have programming skills and could write an extension (if that's the only / best way). Thanks

由prince.cherusker于修改

所有回复 (4)

more options
more options

Is there a feature request for blocking cookies with wildcards already? If not, does it make sense to file such a request or is that too specific and will not be implemented anytime soon?

more options

There is a bug report from 11yrs ago discussing using wild cards. I would think that it is not going any where as did the Netscape one from 13yrs ago. I have googled and come up with nothing.

more options

Haha thanks for your effort! :D Damn that's a shame; I really like the rest of Firefox (after using Chrome for ~10 yrs straight). I might have to join the force then and add this feature myself one day :D Thanks a lot for everything, @Pkshadow