Force Baidu Not to Convert Your Site for Mobile

Learn how to force Baidu not to convert your site

Posted by Ryan Chooai

On mobile devices, Baidu automatically converts websites to suit the screen resolutions and wishfully bring better user experience to its users.

This can be quite annoying when you already have a mobile or responsive website.

Before and after being transcoded by Baidu

Luckily, there are three simple ways to stop the madness:

Option 1: Cache-Control: no-transform

This directive can be either used as an HTTP response header or a meta tag as below:

<meta http-equiv="Cache-Control" content="no-transform " />

Option 2: media=“handheld”

For those who already have mobile sites, they can specify the addresses of their mobile sites, by adding the following line within the head section of the page:

<link rel="alternate" type="application/vnd.wap.xhtml+xml" media="handheld" href="your-mobile-site-address"/>

Just replace your-mobile-site-address with the real address of your mobile site.

Option 3: User-Agent Specific Settings

The user-agent of Baidu’s transcoder is Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; baidu Transcoder;) , so you can let your server return the mobile site specifically to this user-agent.

Be sure to add Content-Type: vnd.wap.xhtml+xml in the response.

So the three methods above can save your site from being blindly converted by Baidu. If you have other problems with Baidu-dummy-spider, why not leave a comment below or drop us a line?

Related posts:

baidu seo guide

Stay up to date