JSP / Glassfish的PHP .htaccess模拟器 [英] Analog of PHP .htaccess for JSP/Glassfish

查看:101
本文介绍了JSP / Glassfish的PHP .htaccess模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何限制JSP / GlassFish中的文件(PDF)访问权限,以便它们只能从源代码打开,而不是直接打开URL。对于PHP项目,我使用了.htaccess。

How is it possible to restrict files(PDF) access in JSP/Glassfish so they can be opened only from a source code not with a straight url. For PHP projects I used .htaccess.

推荐答案

webapp的 WEB-INF 目录无法通过直接URL访问,但应用程序代码可以访问它。这是放置内部资源,配置,JSP等的好地方。

Anything under the webapp's WEB-INF directory cannot be accessed via direct URL, but application code can access it. This is a good place to put internal resources, config, JSPs, etc.

这篇关于JSP / Glassfish的PHP .htaccess模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆