How to open access service docs.google.com , to a folder on the server?

.htaccess

Options -Indexes Deny from all Allow from <docs.google.com> 

That doesn't work ...

The fact is that docs.google.com most likely uses cdn , and accordingly IP addresses can change. How to open access to the folder from the docs.google.com service?

  • What do you mean by accessing the docs.google.com service to a folder on the server? maybe you meant how on your site to read any document from docs.google.com? - Lesiuk Alexey
  • @Lesyuk Alexey Not. I need docs.google.com to be able to read files from a folder on the server, and for everyone else to access this folder. I read the file through the HTML frame. And the frame reads from docs.google.com, and docs.google.com finds a file by reference, which points to the folder that should be closed for everything except Google and where the documents are located. - gilo1212

1 answer 1

First of all. Google does not have a clear description of which servers they will come to you from. Especially since these addresses are subject to change. Setting the subnet also does not help.

Secondly. Not only Google Dox will be able to go to you for files. It is possible that the search robot will index the file and it will be publicly available. And it will be available very simply. There is no security here.

Try using a google disk for these tasks.

For this, there are enough customers to google drive. For Linux, for example, here (I did not use it myself .. but I assume that there will be no problems)

If the server has a GUI, then there are no problems at all. The official package will solve everything.