Page 1 of 1

Automatically block meta refresh

Posted: Mon Jul 21, 2014 10:20 pm
by Hjulle
viewtopic.php?f=7&t=1678&start=0#p6216
Giorgio Maone wrote:NoScript blocks some meta refresh elements (those inside <noscript> elements) because they're often used to redirect users with JavaScript disabled on a silly pages just saying they must enable it.
If you want to block any meta refresh element, just open Tools|Options|Advanced|General and tick the "Warn me whenever a web site tries to redirect me" checkbox.
Otherwise, if you want to block them on per-site basis, you can use the Refresh Blocker extension.
Do I understand correctly that some (the more annoying) meta refreshes should be automatically, without changing that setting? For example https://www.trustpilot.co.uk/review/www.123-reg.co.uk uses exactly that kind of annoying redirect to a page that doesn't even link back to the original one. Should I need to activate the setting, or is there some magic that tries to detect those anyways?

Re: Automatically block meta refresh

Posted: Tue Jul 22, 2014 1:11 am
by barbaz
Hjulle wrote:Do I understand correctly that some (the more annoying) meta refreshes should be automatically, without changing that setting?
Blocked by what?
AFAIK, in default configuration of both Fx and NS, no meta refreshes are automatically blocked...
Hjulle wrote:For example https://www.trustpilot.co.uk/review/www.123-reg.co.uk uses exactly that kind of annoying redirect to a page that doesn't even link back to the original one. Should I need to activate the setting, or is there some magic that tries to detect those anyways?
From that page's DOM:

Code: Select all

<noscript>
                <meta content="0; url=/error/upgradebrowser?status=javascript" http-equiv="refresh">
            </noscript>
So yes, that specific meta refresh would be blocked by NoScript if you turn on the setting. And indeed, as expected, it is.


I'm not 100% sure what you're asking (I'm assuming it's something like "does NoScript's meta refresh blocking effectively only apply to annoying meta refreshes"), so if you want a better answer than that, please explain in more detail what you're defining to be an "annoying" meta refresh vs. one that isn't.