Re: Blocking off access
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 63197
interpreted = N
texte = paul wrote:.... > Dotted IP and normal IPs, in a range format....Actually I think the dotted ones are the ones that are regarded as"normal." They're a bit tricky to do math with though..... > 60,000 lines so a lookup would be best I think,If it's the database Will Starck gave us a link to - or similar to it,lookup won't work. The reason is that it gives ip no *ranges* ratherthan individual ip nos. (a complete ip no. list would be far bigger than60 000 lines long).So you'll have to use two serch criteria and lookup won't allow that. I wouldn't worry too much though. WebDNA is *FAST*!!! > just need a starting point and I will give it a goHere' a quickie. Should work, but I'm sure somebody can come up with a more elegant solution:[!]Convert ip address to "ip number" and store as a variable named ipnumber[/!][TEXT]ipnumber=[MATH][ListWords Words=[IPADDRESS]&delimiters=.]([WORD][SHOWIF [INDEX]<4]*256[/SHOWIF][SHOWIF [INDEX]<3]*256[/SHOWIF][SHOWIF [INDEX]<2]*256[/SHOWIF])+[/LISTWORDS]0[/MATH][/TEXT][!]Search code[/!][Search db=ip-to-country.db&ipFromtype=num&ipTotype=num&geipFromdatarq=[ipnumber]&leipTodatarq=[ipnumber]&max=1][Founditems]{Insert whatever code you need to do what you want to do with the nationality data}[/Founditems][/Search]Dale-List wrote: > > Keep in mind that this won't work for AOL as pretty much all of their > IPs reflect the US, even for european AOL users.True, and there are also surfers who use a proxy in a different country. There's simply no way to make an ip address based nationality identification hundred percent reliable.Frank Nordberghttp://www.musicaviva.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
paul wrote:.... > Dotted IP and normal IPs, in a range format....Actually I think the dotted ones are the ones that are regarded as"normal." They're a bit tricky to do math with though..... > 60,000 lines so a lookup would be best I think,If it's the database Will Starck gave us a link to - or similar to it,lookup won't work. The reason is that it gives ip no *ranges* ratherthan individual ip nos. (a complete ip no. list would be far bigger than60 000 lines long).So you'll have to use two serch criteria and lookup won't allow that. I wouldn't worry too much though. WebDNA is *FAST*!!! > just need a starting point and I will give it a goHere' a quickie. Should work, but I'm sure somebody can come up with a more elegant solution:[!]Convert ip address to "ip number" and store as a variable named ipnumber[/!][text]ipnumber=[math][ListWords Words=[ipaddress]&delimiters=.]([WORD][SHOWIF [INDEX]<4]*256[/SHOWIF][SHOWIF [INDEX]<3]*256[/SHOWIF][SHOWIF [INDEX]<2]*256[/SHOWIF])+[/LISTWORDS]0[/MATH][/TEXT][!]Search code[/!][Search db=ip-to-country.db&ipFromtype=num&ipTotype=num&geipFromdatarq=[ipnumber]&leipTodatarq=[ipnumber]&max=1][founditems]{Insert whatever code you need to do what you want to do with the nationality data}[/Founditems][/Search]Dale-List wrote: > > Keep in mind that this won't work for AOL as pretty much all of their > IPs reflect the US, even for european AOL users.True, and there are also surfers who use a proxy in a different country. There's simply no way to make an ip address based nationality identification hundred percent reliable.Frank Nordberghttp://www.musicaviva.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Frank Nordberg
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Banners and sort of random display (1997)
template not found error (1998)
Comments in db? (1997)
two contexts into one? (1999)
format_to_days on NT (1997)
Newbie Tax Question (1997)
WCS Newbie question (1997)
WebCat/CyberStudio Compatibility (1998)
WebCat Error Log problem (2.0.1, acgi, Mac) (1997)
# fields limited? (1997)
[REPLACE] inside [FOUNDITEMS] (1998)
A few questions... (1999)
WebCat and image maps (1997)
Custom WebCat Prefs ... (1997)
OT: RAID Options (2004)
Questions. (1998)
WebCatalog Technical Reference (1997)
Site / Database Structure (2002)
WebDNA 4.5 (2004)
Reversed words (1997)