homepage Welcome to WebmasterWorld Guest from 54.211.97.242
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Banning certain content by IP
KevinC

10+ Year Member



 
Msg#: 3142551 posted 6:42 pm on Nov 1, 2006 (gmt 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

 

RonPK

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3142551 posted 8:14 pm on Nov 1, 2006 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved