PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 19, 2022

[FIXED] Protect files in folder on hosting linux using codeigniter php

 February 19, 2022     .htaccess, .htpasswd, codeigniter, hosting, php     No comments   

Issue

Im doing a little application write in php with codeigniter hosted in hostinglinux i had no problems with create codeigniter interface with user login to access the application

now i have a problem... i want to create some folder for the user to store some .pdf file like this picture enter image description here

what can i do to protect every single users folder with the same password to login in the codeigniter application ? my idea/goal is

username:user_a pass:pass_user_a

for displayng the files in the folder of user_a (that is on hosting linux) the user must insert the password

anyone can help me ? sorry for the baddest english ever


Solution

You have a solution in the following link which use CI framework and session to protect each user file:

Solution for document protection with session in CodeIgniter



Answered By - Bruno
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing