mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +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);
|
||||
|
||||
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)"
|
||||
// Mediapartners-Google -> Add sense robot
|
||||
this.product = Product.WEB_CRAWLER;
|
||||
|
||||
} else if (userAgentHeader.contains("MSIE")) {
|
||||
|
Loading…
Reference in New Issue
Block a user