Welcome to WebmasterWorld Guest from 54.162.214.65

Forum Moderators: open

Message Too Old, No Replies

Banning certain content by IP

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

Preferred Member

10+ Year Member

joined:Aug 30, 2002
posts:522
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 22, 2002
posts:1749
votes: 0


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