Code: Select all
$referer = $_SERVER['HTTP_REFERER'];
$this_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"];
if ($referer!= $this_url) {
echo "You do not have permission to use this script from another URL.";
}
else {
code that sends the message!
}Is there a workaround here?
Or another way to restrict use of the form script?
feyd | Please review how to post code using
Code: Select all
andCode: Select all
tags. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]