Thanks Dagon, But I want to hide the only opening for the main script and any other page in the same file work fine.
For example
example.com/test.php >>> Should give permissions error
example.com/test.php?test=anything >>>> Should open it fine
How I can do that ? Again thanks for your reply.