News for hackers. Stuff that matters.
Re:Google.com search now refusing to search for FF esr 128 w... by relyks on Wednesday January 15, 2025 @08:57PM (#42720056)
Maybe try changing the user agent? I can use Google on my Kindle's web browser and that can barely handle Javascript (though the Kindle does do limited execution)
Re:Google.com search now refusing to search for FF esr 128 w... by flaptrap on Wednesday January 15, 2025 @09:38PM (#42720376)
Other browsers, just an ad to use one of five other browsers, and incidentally use Javascript. Always use noscript to reduce the attack surface.

For the dyed-in-the-wool, lynx https://www.google.com, tab and type in test, tab and enter, Now how can I get lynx to remove the ad?

Startpage search on "Google requires Javascript" replies "Allow JavaScript in your browser - Google AdSense Help" - now isn't that special?

Re:Google.com search now refusing to search for FF esr 128 w... by superkuh on Wednesday January 15, 2025 @09:03PM (#42720095)
I have tried spoofing the user agent. No effect. It seems to be if the browser is new enough then if JS is turned off it blocks you. But if you use a really old browser (~2015 Firefox) that doesn't support modern stuff it still allows non-JS search. I think they must have the server looking at HTTP header or fingerprinting or something. I don't think they could do the redirect based on CSS or HTML5 support without JS being run.
Re:Google.com search now refusing to search for FF esr 128 w... by nicoburns on Wednesday January 15, 2025 @09:12PM (#42720180)
I believe they're doing a meta-tag redirect (possibly inside a noscript tag?) in at least some cases. Source: I'm developing a web engine that doesn't have JS support.
Re:Google.com search now refusing to search for FF esr 128 w... by ronjouch on Wednesday January 15, 2025 @10:16PM (#42720647)
That's exactly what they are doing:

    <!DOCTYPE html>
    <html>
      <head><title>Google Search</title>...</head>
      <body>
        <noscript>
          <meta content="0;url=/httpservice/retry/enablejs?sei=..." http-equiv="refresh">
          <div style="display:block">Please click <a href="/httpservice/retry/enablejs?sei=...">here</a> if you are not redirected within a few seconds.</div>
        </noscript>...
Re:Google.com search now refusing to search for FF esr 128 w... by superkuh on Wednesday January 15, 2025 @10:19PM (#42720680)
You're correct.

    <noscript><meta content="0;url=/httpservice/retry/enablejs?sei=a3qIZ42cGcvcp84P5p_mwQI" http-equiv="refresh"><style>table,div,span,p{display:none}</style><div style="display:block">Please click <a href="/httpservice/retry/enablejs?sei=a3qIZ42cGcvcp84P5p_mwQI">here</a> if you are not redirected within a few seconds.</div></noscript></header>
Re:Google.com search now refusing to search for FF esr 128 w... by superkuh on Thursday January 16, 2025 @12:05AM (#42721488)
Here's a skeleton overlay.js for an old style firefox extension to mitigate the meta-redirect part of the blocking.

    var remover = {
        init: function() {
            var appcontent = document.getElementById("appcontent");
            if(appcontent) {
                appcontent.addEventListener("DOMContentLoaded", 
                    function(e) {
                        var doc = e.originalTarget;
                        if(doc instanceof HTMLDocument) {
                            var noscripts = doc.getElementsByTagName('noscript');
                            for(var i = 0; i < noscripts.length; i++) {
                                //if(noscripts[i].innerHTML.indexOf('meta content="0;url=/httpservice/retry/enablejs?sei=') != -1) {
                                    noscripts[i].parentNode.removeChild(noscripts[i]);
                                //}
                            }
                        }
                    }, true);
            }
        }
};

window.addEventListener("load", function() { remover.init(); }, false);

Re:Google.com search now refusing to search for FF esr 128 w... by nicoburns on Thursday January 16, 2025 @01:14AM (#42721937)
Have you tested this? I don't think this will help much because you'll just get a page that requires JavaScript to function.
Re:Google.com search now refusing to search for FF esr 128 w... by ronjouch on Thursday January 16, 2025 @07:18AM (#42724281)
This won't help indeed, the noJS page now is only this redirect and contains no search results.

It’s a blank page with one line of text: “Please click here if you are not redirected within a few seconds”.

Re:Google.com search now refusing to search for FF esr 128 w... by superkuh on Thursday January 16, 2025 @11:41AM (#42727616)
That depends. It works on setups where google still gives you the old html results but not one setups where it sends you to the js application. So on 3 out of 5 of my desktop setups it works. On the ones where, for some reason, google only sends me to the JS app, it doesn't work like you suggest, or, it does, but I'm just left looking at a blank page.
Re:Google.com search now refusing to search for FF esr 128 w... by niutech on Thursday January 23, 2025 @07:28PM (#42809424)
The Lynx user agent string works for now:

    Lynx/2.8.6rel.5 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/1.0.0a