0

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!

Community
  • 1
  • 1
  • You need an authentication system: https://www.codecourse.com/lessons/php-authentication-system , http://php.net/manual/en/features.http-auth.php or https://daveismyname.blog/login-and-registration-system-with-php. Many other examples exist. – KIKO Software May 20 '17 at 08:45
  • 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... –  May 20 '17 at 08:53
  • You can prevent accessing the specific files (with format) by `.htaccess`, then load them after auth in php code with buffer or other solutions. – Yahya May 20 '17 at 08:58
  • Yahya could you be more specific (with code or so) please? –  May 20 '17 at 09:31

0 Answers0