I have this newly created web page with a Index that loads with require the different parts of my web, depending on where you are located (home, contact, about, etc). My problem is that if a user types in the URL /contact.php this "module" will load up and give errors and I don't want that to happen. Can I block the access to all this small modules (contact.php, about.php, etc) and only be able to load them from index.php ? Is there anyway I can do that without touching the .htaccess file? Or would you recommend me editing this file too and block user access to them only to have an added layer of security? Can I still have access to the files from my index.php if I block them in .htaccess ?
Thanks.