I have a simple config page in my root directory. It's similar wp-config.php which in wordpress system. It's name is config.php (or anything). There are some mysql logins or general page functions in my files(functions.php).
When user calls my index page, it loads config.php(or other function pages). But i want to keep them from external calls: i want to block or redirect user when they entered mydomain.com/config.php.
1. Is there any way to do this?
2. If is/isn't, does it matter for security? I don't know about security but it bothers me when i think.