R
Robert TV
Hello all,
I'm trying to build the best possible security for my perl script. The main
page of my web site has a login and password box. When submitted, the userid
and password are compared against valid accounts, and the programs runs if
successful. I forsee a potentail security hole in the, and it has to do with
someone accessing the perl script from their own web page or server using a
false login and password form that would have the same form names as my own.
I would like my script to check the refferrer of the login submission and
take action based on that result. EG:
#!/usr/bin/perl
if (refferring web page does not eq "myserver.com/login.pl") {
print "Access Denied";
exit;
} else {
allow access to my program, and verify username and password
}
Can someone please help me out with the syntax I would need to correctly
accomplish this?
Thanx!
Randy
I'm trying to build the best possible security for my perl script. The main
page of my web site has a login and password box. When submitted, the userid
and password are compared against valid accounts, and the programs runs if
successful. I forsee a potentail security hole in the, and it has to do with
someone accessing the perl script from their own web page or server using a
false login and password form that would have the same form names as my own.
I would like my script to check the refferrer of the login submission and
take action based on that result. EG:
#!/usr/bin/perl
if (refferring web page does not eq "myserver.com/login.pl") {
print "Access Denied";
exit;
} else {
allow access to my program, and verify username and password
}
Can someone please help me out with the syntax I would need to correctly
accomplish this?
Thanx!
Randy