Title: Using with localhost
Last modified: August 19, 2016

---

# Using with localhost

 *  [guerillamarketing](https://wordpress.org/support/users/guerillamarketing/)
 * (@guerillamarketing)
 * [15 years ago](https://wordpress.org/support/topic/using-with-localhost/)
 * Will I be able to test this plug-in locally using the following code:
    [gview
   file=”http://www.localhost/site/wordpress/wp-content/uploads/2011/02/filename.
   ai”]
 * or do I have to upload it to my server first for it to work?
    Thanks for the 
   help.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [oem](https://wordpress.org/support/users/oem/)
 * (@oem)
 * [15 years ago](https://wordpress.org/support/topic/using-with-localhost/#post-2076896)
 * If your server is on the net should work as stated by the plugin developper.
 * but if your localhost is on an intranet (not public not on the web) it won’t 
   work…
 * I’m desesperatly looking for that to use on an INTRANET too.
 * any plugin that uses google API needs the file to be public (at least on the 
   web)
    this is too much big brother for me.
 * Google doesn’t allow this.
 * we’re stuck.
    [http://code.google.com/apis/chart/interactive/faq.html#localdownload](http://code.google.com/apis/chart/interactive/faq.html#localdownload)
 * > Can I use charts offline?
   >  No; your computer must have live access to [http://www.google.com/jsapi](http://www.google.com/jsapi)
   > in order to use charts. This is because the visualization libraries that your
   > page requires are loaded dynamically before you use them. The code for loading
   > the appropriate library is part of the included jsapi script, and is called
   > when you invoke the google.load() method. Our terms of service do not allow
   > you to download the google.load or google.visualization code to use offline.
   > Can I download and host the chart code locally, or on an intranet? Sorry; our
   > terms of service do not allow you to download and save or host the google.load
   > or google.visualization code.
 *  [k3davis](https://wordpress.org/support/users/k3davis/)
 * (@k3davis)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/using-with-localhost/#post-2076920)
 * As oem stated, Google needs access to the docs in order to load them into the
   viewer. You can have the pages on an intranet, but the docs themselves must be
   publicly accessible. There are some mitigating options built into the plugin –
   such as masking URLs for PDF files – and you can put the files in a public directory
   on your web site that disallows directory indexing and search engine access using
   an .htaccess file – but these aren’t impossible to bypass. For documents that
   have a true security or personal concern, Google’s viewer (and therefore my plugin,
   which embeds it) is not a good solution for you.
 * Kevin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using with localhost’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-document-embedder_484848.svg)
 * [Google Doc Embedder](https://wordpress.org/plugins/google-document-embedder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-document-embedder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-document-embedder/)
 * [Active Topics](https://wordpress.org/support/plugin/google-document-embedder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-document-embedder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-document-embedder/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [k3davis](https://wordpress.org/support/users/k3davis/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/using-with-localhost/#post-2076920)
 * Status: not a support question