Automatically block meta refresh

Ask for help about NoScript, no registration needed to post
Hjulle

Automatically block meta refresh

Post 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?
Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0
barbaz
Senior Member
Posts: 11144
Joined: Sat Aug 03, 2013 5:45 pm

Re: Automatically block meta refresh

Post 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.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30a1
Post Reply