Home › Forums › CSS › HELP: PHP redirct within a certain div rather than an entire site page › Re: HELP: PHP redirct within a certain div rather than an entire site page
November 13, 2012 at 1:34 pm
#114219
Member
@traq, im not sure how to write the code at all, ive done a bit of research and i found this redirect based on ip:
$allowed = array(“94.171.121.121”);
$ip = $_SERVER;
if(!in_array($ip, $allowed))
{
header(“Location: http://www.google.co.uk); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
}
else
{
}
?>
how can i manipulate this to make it apply to a single element (my div with the youtube video) rather than the entire page of the website?