We got this part of code which is supposed to protect the script from working when invoked out of our own domain:
However....
#########
#Valid page
$DN=$ENV{'HTTP_REFERER'};
if ($DN eq "") {
print "Sorry You can't run this script from this page\n";
exit;
}
$DN =~ tr/A-Z/a-z/;
if ($DN =~ /nonsong.org/i) {
$stayin=1;
}
else {
print "Sorry You can't run this script from this page\n";
exit;
}
########
However, another person can simply load a page with name : nonsong.org.html
and is able to use our script.
Please let us know if you have fix to this.
Thank you for your time.
However....
#########
#Valid page
$DN=$ENV{'HTTP_REFERER'};
if ($DN eq "") {
print "Sorry You can't run this script from this page\n";
exit;
}
$DN =~ tr/A-Z/a-z/;
if ($DN =~ /nonsong.org/i) {
$stayin=1;
}
else {
print "Sorry You can't run this script from this page\n";
exit;
}
########
However, another person can simply load a page with name : nonsong.org.html
and is able to use our script.
Please let us know if you have fix to this.
Thank you for your time.