mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
- Add Mediapartners-Google add sense crawler
This commit is contained in:
parent
c4c3f30303
commit
6008376ad5
@ -114,8 +114,9 @@ public class UserAgent implements Serializable {
|
|||||||
|
|
||||||
this.os = parseOS(productDetails);
|
this.os = parseOS(productDetails);
|
||||||
|
|
||||||
if (userAgentHeader.contains("Googlebot")) {
|
if (userAgentHeader.contains("Googlebot") || userAgentHeader.contains("Mediapartners-Google")) {
|
||||||
//"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
|
//"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
|
||||||
|
// Mediapartners-Google -> Add sense robot
|
||||||
this.product = Product.WEB_CRAWLER;
|
this.product = Product.WEB_CRAWLER;
|
||||||
|
|
||||||
} else if (userAgentHeader.contains("MSIE")) {
|
} else if (userAgentHeader.contains("MSIE")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user