【问题标题】:does google maps api block bot?谷歌地图 api 会阻止机器人吗?
【发布时间】:2015-11-02 09:04:51
【问题描述】:

当我在 Google 网站管理员工具中检查 URL 时,我发现了这个。

我在我的网页中添加了 Google Places javascript API,但通过 Google bot 调用时被阻止。我该如何处理?

【问题讨论】:

    标签: google-places-api googlebot


    【解决方案1】:

    点击“robots.txt”链接,看看它说了什么。

    我想你会看到:

    User-agent: *
    Allow: /maps/api/js?
    Allow: /maps/api/js/DirectionsService.Route
    Allow: /maps/api/js/DistanceMatrixService.GetDistanceMatrix
    Allow: /maps/api/js/ElevationService.GetElevationForLine
    Allow: /maps/api/js/GeocodeService.Search
    Allow: /maps/api/js/KmlOverlayService.GetFeature
    Allow: /maps/api/js/KmlOverlayService.GetOverlays
    Allow: /maps/api/js/LayersService.GetFeature
    Disallow: /
    

    ...这意味着您尝试的 /maps-api-v3/... 路径确实被禁止。

    【讨论】:

    • 还有其他方法可以实现吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-23
    • 2011-09-01
    • 1970-01-01
    相关资源
    最近更新 更多