Home
Sign Up
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
怎么禁止部分目录禁止访问?
b7898585
·
Sep 14, 2015
· 2379 views
This topic created in 4071 days ago, the information mentioned may be changed or developed.
用 dede 做的程序,安全是个大问题
该怎么禁止部分目录禁止访问呢?
本来想用反代的,直接读取 html 和 css 以及 jpg , php 的禁止访问掉
但是好像不成功, php 的照样能访问
禁止
PHP
访问
目录
2 replies
Aliencn
Sep 14, 2015
1
nginx
location ~ ^/admin/ {
return 404;
}
b7898585
OP
Sep 15, 2015
2
@
Aliencn
apache 的
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1603 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 04:55
·
PVG 12:55
·
LAX 20:55
·
JFK 23:55
♥ Do have faith in what you're doing.
❯