Forum Moderators: open

Message Too Old, No Replies

Banning certain content by IP

         

KevinC

6:42 pm on Nov 1, 2006 (gmt 0)

10+ Year Member



I use ad software that pulls ads from a database using javascript as the invocation code.

Basically I have a list of IP's that I don't want to show the ads to. Is there a way to check a text file of ips and if the user does NOT match those ips then continue on with the rest of the script?

If that makes sense?

thanks

RonPK

8:14 pm on Nov 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Client side JavaScript cannot detect the users IP. You will need some sort of server side script.