XML Sitemaps Generator

Author Topic: Any way to get the User Agent look like a smart phone one?  (Read 1726 times)

dvanrooy

  • Registered Customer
  • Approved member
  • *
  • Posts: 9
Any way to get the User Agent look like a smart phone one?
« on: March 23, 2017, 04:21:25 AM »
Is there any way to override the user agent used so it looks like a mobile phone browser's user agent, e.g. Safari on an iPhone, or Chrome on an Android?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10852
Re: Any way to get the User Agent look like a smart phone one?
« Reply #1 on: March 23, 2017, 06:35:21 AM »
Hello,

yes, it can be defined in generator/data/generator.conf file:
<option name="xs_crawl_ident">....</option>
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

dvanrooy

  • Registered Customer
  • Approved member
  • *
  • Posts: 9
Re: Any way to get the User Agent look like a smart phone one?
« Reply #2 on: March 23, 2017, 11:36:59 AM »
Great!  So something like
Quote
<option name="xs_crawl_ident">Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)</option>
(the latest Googlebot-mobile I found) should work, correct?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10852
Re: Any way to get the User Agent look like a smart phone one?
« Reply #3 on: March 23, 2017, 08:34:04 PM »
Yes.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.14 | SMF © 2017, Simple Machines
XHTML RSS WAP2