• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net

Message depending on IP

Anayet

New Member
What do i add/edit to the following script so that everyone gets the message but not the person with the IP address - as opposed to only the person with the IP address getting it?

<script language="javascript">
var ip = '<!--#echo var="REMOTE_ADDR"-->'
if (ip == '123.123.123.123') {
alert("Message");
}
</script>

Thanks
 
Hi every one! I'm new here :biggrin2: !

How do you make alert("Message"); in to - when the IP comes to your site they're sent to another page or a "banned" page? Thanks for the great code! :biggrin2:
 
Back
Top