我已经部署了一个PHP应用程序到谷歌应用程序引擎。在app.yaml文件看起来像如下:限制公众访问谷歌云应用程序中的文件
- url: /css
static_dir: css
- url: /js
static_dir: js
- url: /api
script: api.php
- url:/
static_files: index.html
upload: index.html
截至目前,我能够访问使用url JS文件夹内的所有文件:project-name.appspot.com/js/custom.js。任何用户都不能通过在URL中输入路径来查看文件的内容。我想限制公众访问除index.html之外的任何文件。我们怎样才能做到这一点?
感谢
那些'js'文件打算如何使用?嵌入在HTML文件中?通过链接引用? –
嗨@DanCornilescu,js和css文件打算通过链接使用,如。 –