Jquery Google文档查看器iframe,文档位于受保护区域内

Jquery Google文档查看器iframe,文档位于受保护区域内,jquery,.htaccess,iframe,Jquery,.htaccess,Iframe,我正在使用google doc viewer在我的页面中嵌入显示的文件: $('#previewContainer').html('<iframe src="https://docs.google.com/viewer?url=https://www.example.com/'+file+'&#038;embedded=true" width="100%" height="100%" style="border: none;"></iframe>') ; 为了让

我正在使用google doc viewer在我的页面中嵌入显示的文件:

$('#previewContainer').html('<iframe src="https://docs.google.com/viewer?url=https://www.example.com/'+file+'&#038;embedded=true" width="100%" height="100%" style="border: none;"></iframe>') ;
为了让查看器正常工作,我在htaccess中添加了以下行:

allow from google.com
现在我试着从安全的角度来思考。是否有人可以让htaccess认为请求来自127.0.0.1或google.com,从而访问这些文件? 如果是,我如何防止这种情况

allow from google.com