Recaptcha without allowing entire google.com domain
Recaptcha without allowing entire google.com domain
A lot of sites include the google recaptcha script. Unfortunately, it does not have its own subdomain, but is hosted directly on google.com. Whitelisting the whole google.com domain is not funny. Can this be sorted out somehow within the current NoScript framework?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Re: Recaptcha without allowing entire google.com domain
Allow google.com in script blocking, then use ABE to allow only select google scripts -
Replace <whatever-google.com-stuff-recaptcha-needs> with the scripts you want to allow. See ABE Rules .pdf for how to specify it.
Code: Select all
Site <whatever-google.com-stuff-recaptcha-needs>
Accept
Site .google.com
Deny INC(SCRIPT, OBJ, FONT, XHR, MEDIA)
Sandbox
*Always* check the changelogs BEFORE updating that important software!
-
Re: Recaptcha without allowing entire google.com domain
I only spent a few minutes on it, but "Site ^https://www.google.com/recaptcha/" is good enough for me. Thank you very much for this info.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0
Re: Recaptcha without allowing entire google.com domain
You're welcome.
In regex, a plain . means 'any character', so your Site line would match e.g. "https://www-google.com/recaptcha/". So you might want to change it to this -ultramage wrote:"Site ^https://www.google.com/recaptcha/"
Code: Select all
Site ^https://www\.google\.com/recaptcha/
*Always* check the changelogs BEFORE updating that important software!
-
Re: Recaptcha without allowing entire google.com domain
I have a followup to this. Whenever a captcha loads, the firefox debugger reports
Failing to load this out-of-scope script causes the google server to request 5+ valid answers before accepting, compared to the usual 1-2 if the script is allowed.
I wish NoScript would ship with a narrowly scoped surrogate-like thing that deals with these sorts of shenanigans. Or that google made their recaptcha easier to whitelist.
Code: Select all
CustomError: Jsloader error (code #0): Error while loading script //www.google.com/js/bg/<long string that triggers forum antispam>.js
I wish NoScript would ship with a narrowly scoped surrogate-like thing that deals with these sorts of shenanigans. Or that google made their recaptcha easier to whitelist.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0