Block from URL allow from Script?
I have a basic-ish script I am working on and I had an idea I wanted to test out...
okay, basically on my page I have an input box and a submit button.
when the input box text matches the predetermined text in the script it will take you to a randomly generated file.php
SO you are at mydomain.com/page1.php and you enter "winner" in the text box and click submit, you are taken to Hy67ge.php
What I would like is a way (maybe htaccess?) where if you enter http://mydomain.com/Hy67ge.php you get a access denied error page instead of the actual page.
I have tried using htaccess :
order allow, deny
allow from localhost
deny from all
but that doesn't seem to work.
Is there a way to do this?