I have facing an issue of URL routing in PHP.
In my localhost I have two project directory:
- project_one:
- index.php
- other_directorys
- project_one:
- hacking_script:
- index.php
- database_dump.php
- hacking_script:
when I have to access my project_one I go with localhost/project_one
this work correct. But when I have input in this localhost/project_one/../../hacking_script
it's open localhost/hacking_script/index.php
file.
So how to prevent it, I didn't get any idea. Can I use .htaccess to prevent it? If yes then how?