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)

Preferred Member

10+ Year Member

joined:Aug 30, 2002
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?


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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 22, 2002
votes: 0

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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members