BADLY NEEDED HELP!!!
How can I make a script to only accept input from within my domain?
thanks 🙂
$SERVER["REMOTE_ADDR"] $SERVER["SERVER_ADDR"]
you can use these two variables to build a quick comparison script and then include it on every page with apache or php.
I'm not quite sure how to implement this.
So $SERVER["SERVER_ADDR"] is my hosting server and $SERVER["REMOTE_ADDR"] is my machine i.p?
Sorry but could you give a little further help!
thankyou 😉
What are you trying to do?
only allow form data to be accepted from pages on your site?
yes... It's intended to disallow people from writing malicious scripts against it
$my_host = $SERVER["SERVER_ADDR"]; $referer = $SERVER["REMOTE_ADDR"];
if ($my_host == $referer){ do this } else { do this }
thanks david 🙂
the referring ip is not changing despite white site I visit the page from.
The IP's are not equal despite visiting from the same site??
L