Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Banning certain content by IP



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?



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.

Featured Threads

Hot Threads This Week

Hot Threads This Month