I have the following script
if (strstr($_SERVER['HTTP_REFERER'],"mysite.com")) {
echo "access granted";
} else {
echo "Sorry you dont have access";
}
now this seems to work fine, but is there a way around this. Like can someone spoof the REFERER url?
Note: this is on a page with a submit form. So no outside script can excute the form.
example: <form action="mysite.com/form.php">