is their a way to stop a particular ip adress from viewing my web site or forward the user to another page, and keep him from accessing my site in anyway
Printable View
is their a way to stop a particular ip adress from viewing my web site or forward the user to another page, and keep him from accessing my site in anyway
In HTML no way. In Javascript possibly. In JSP:
In PHP:Code:if (request.getRemoteAddr().equals("1.2.3.4"))
{
out.write("PISS OFF!");
return; // parse nothing else
}
Code:if ($REMOTE_ADDR == "1.2.3.4")
{
echo 'PISS OFF!';
exit; // parse nothing else
}