Title: API key visible in code
Last modified: September 1, 2016

---

# API key visible in code

 *  Resolved [andreac25](https://wordpress.org/support/users/andreac25/)
 * (@andreac25)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-key-visible-in-code/)
 * Hello,
 * at first I would like to thank you for this great plugin which allows me to show
   cycling tracks to my visitors again.
 * But I think there is one (I hope minor) problem. Google advises you not no embed
   API keys directly in code ([https://support.google.com/googleapi/answer/6310037](https://support.google.com/googleapi/answer/6310037)),
   which is exactly what happens if I use the plugin. API key is visible in code.
 * Is it a big problem? Is there any way to hide the key in the code?
 * Thank you very much for the answer
 * [https://wordpress.org/plugins/api-key-for-google-maps/](https://wordpress.org/plugins/api-key-for-google-maps/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * (@stiofansisland)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/api-key-visible-in-code/#post-7711511)
 * Hello,
 * For JavaScript there is no alternative and this is the way it is done, please
   see the Google tutorial here: [https://developers.google.com/maps/documentation/javascript/tutorial](https://developers.google.com/maps/documentation/javascript/tutorial)
 * Google only recently made the maps API key a requirement so some of their instructions
   might be a bit out of date.
 * You can limit your api key to only work from certain domains which means it does
   not matter if someone knows it or not.
 * Thanks,
 * Stiofan

Viewing 1 replies (of 1 total)

The topic ‘API key visible in code’ is closed to new replies.

 * ![](https://ps.w.org/api-key-for-google-maps/assets/icon-256x256.jpg?rev=1555469)
 * [API KEY for Google Maps](https://wordpress.org/plugins/api-key-for-google-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/api-key-for-google-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/api-key-for-google-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/api-key-for-google-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/api-key-for-google-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/api-key-for-google-maps/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stiofan](https://wordpress.org/support/users/stiofansisland/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/api-key-visible-in-code/#post-7711511)
 * Status: resolved