Jump to content

Human Eyes Only... content within given page -- block Google maps API from Bots


erv

Recommended Posts

Hello

 

We have a series of sites that use Google API to serve locations stored in local DB, that show google maps from within given PHP pages within our sites (these pages also have other db driven content we wish to keep....

 

Each 'member' in our sites,  they each have a google map shown on each page present for their 'location' menu tab...

 

These calls to the google map API,  often goes over our daily allotment of freebie map presentations from the google API

 

It is SE and other Bots that run these view numbers off the charts and prevent the google maps from loading the actual maps - we get a google map err message - advising that maximum views have been reached... (we see this in our server error logs)

 

Thoughts on how i can serve this map code to only legit http requests (human eyes)  or at least reduce the burden of bot crawl requests to the google API?

 

here is the code we use to call the maps

 

- We need to encapsulate Google Map Display in a snippet that will block it from getting hit by bots....

 

Huge Thanks!

 

<form target="_blank" method="GET" action="http://maps.google.com/maps">
<input type="hidden" name="daddr" value="<? echo "$address, $city, $state $zip $country" ?>">
<?php display_tooltip("Please enter your starting point in the form address, city, state zip country or simply enter your city", "mapdir");?>
<input type="text" name="saddr" value="your starting point" onfocus=this.select()>
<input class="clickableL" type="submit" value="Map and Directions">
</form>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.