sparklemotion / mechanize

Mechanize is a ruby library that makes automated web interaction easy.
https://www.rubydoc.info/gems/mechanize/
MIT License
4.39k stars 474 forks source link

Fix the Cookie Monster problem #154

Closed knu closed 12 years ago

knu commented 13 years ago

Mechanize should reject a cookie with domain=co.uk if it is from *.co.uk.

For the black list, we can adopt the eTLD (effective TLD) list maintained in the Mozilla/Firefox repository.

http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat

This should probably be provided as a separate gem.

drbrain commented 13 years ago

I think it would be OK to provide it only in mechanize to start

knu commented 12 years ago

My domain_name gem is soon to be ready. Please wait for a few more days.

https://github.com/knu/ruby-domain_name

knu commented 12 years ago

Done. We probably need some more test cases.