www.smh.com.au redirects to m.smh.com.au when using Chromium on Ubuntu Linux

Written by James McDonald

October 15, 2010

Looks as if smh’s (Sydney Morning Herald’s) browser user-agent detection code is not correctly identifying the “Chromium 6.0.472.63 (59945) Ubuntu 10.10” browser.

Instead of giving you www.smh.com.au it redirects to m.smh.com.au I posted a work-a-round over at whirlpool.net.au. Which I am repeating on my personal blog here.

I tried installing a user-agent switcher but that didn’t work (I’m assuming because it was developed for Google Chrome and not the `Chromium’ browser we have on Ubuntu / Linux) , so plan B was to use the command line to switch the user agent

e.g.
Click Applications ==> Accessories ==> Terminal and type:

 chromium-browser --user-agent="myspecial/browswer"

Once you have run Chromium from the command prompt you can see the change to the user-agent string by going here https://toggen.com.au/proxy_check.php. This is basically a script that echo’s back to the browser the parameters it is passing to the remote web server.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.

You May Also Like…

Clear HSTS Settings in CHrome

Open chrome://net-internals/#hsts enter the domain in the query field and click Query to confirm it has HSTS settings...

Ubuntu on Hyper-v

It boils town to installing linux-azure # as root or sudo apt-get update apt-get install linux-azure...