Prevent Direct Access of Files With PHP
A common problem new developers encounter is when they have an area of their website made private, how do they prevent non-logged-in users from going straight to a non-php file like a word document? There are solutions involving htaccess files but these typically can’t easily be integrated with your PHP user management system. The quick […]