How to secure a folder with html, css, js and php files?

0 投票
最新提问 用户: (120 分)

I have exactly the same question as is asked here, but I want to place websites in that folder (with html, css, js, php etc.). So my question is how that is done exactly?

More specific: In one page you log in, then I will redirect you to another php file which shows an iframe with websites that are placed in this folder.

Thanks already!

发表于 用户: (120 分)
Yeah I have a login made already, but in this directory I will place folders with other websites where I can't check if they are logged in...
发表于 用户: (140 分)
You can prevent accessing the specific files (with format) by .htaccess, then load them after auth in php code with buffer or other solutions.
发表于 用户: (120 分)
Yahya could you be more specific (with code or so) please?

登录 或者 注册 后回答这个问题。

欢迎来到 Security Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。