Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
240 views
in Technique[技术] by (71.8m points)

apache - how to protect some folder in codeigniter on webhosting

in a directory called "test" on my web hosting i have some .pdf files

i have my simple .htaccess for blocking who want to see the file from url (like this www.example.com/test/file.pdf )

<IfModule authz_core_module>
 Require all denied
</IfModule>
<IfModule !authz_core_module>
 Deny from all
</IfModule>

now i want if is possible that who is logged in codeigniter and have a session must see the file and can download the file or read

anyone can help me ?

sorry for the english thanks a lot

question from:https://stackoverflow.com/questions/65938205/how-to-protect-some-folder-in-codeigniter-on-webhosting

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...