Re: Hideif on IP range
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59328
interpreted = N
texte = Hi RobThanks for the input, I may be werong but i cannot see the site but theclient who is on a different IP said he couldUltimately I need to block ranges like this to show alternate content tothese IP's and the original content to all other IP's194.158.32.0 - 194.158.63.255195.158.96.0 - 195.158.127.255and this is where I am lostTHanksPaul----- Original Message -----From: "Rob Marquardt"
To: "WebDNA Talk" Sent: Thursday, September 09, 2004 5:54 PMSubject: Re: Hideif on IP range> on 9/9/2004 7:38 am, Paul Berman at paul@ast.jagrove.com so noted...>> > Works very well, to add another range to this do I nest the [If's}> >> > Many thnaks> > Paul> > ----- Original Message -----> > From: "Tim Robinson" > > To: "WebDNA Talk" > > Sent: Thursday, September 09, 2004 2:12 PM> > Subject: Re: Hideif on IP range> >> >> > [If ("[ipaddress]">"194.158.32.0")&("[ipaddress]"<"194.158.63.255"]> > [Then]Don't show stuff[/Then]> > [Else]Show stuff[/Else]> > [/If]>> I don't see how this would possibly work, since WebDNA pads IP addresses> with zeros, and even if it didn't you're doing numeric comparisons on> strings.>> Something like this would be required:>> [listwords words=[ipaddress]&delimiters=.][!]> [/!][math show=f]block[index]=[word][/math][!]> [/!][/listwords]>>> [If ("[block1].[block2]"="194.158")&([block3]>31)&([block3]<64)]> [Then]Don't show stuff[/Then]> [Else]Show stuff[/Else]> [/If]>>>>> Rob Marquardt> Designer/Resident Wirehead> Toast Design>> 800 Washington Avenue North> Minneapolis MN 55401> 612.330.9863 v> 612.321.9424 f> www.toastdesign.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/>-------------------------------------------------------------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:
Hi RobThanks for the input, I may be werong but i cannot see the site but theclient who is on a different IP said he couldUltimately I need to block ranges like this to show alternate content tothese IP's and the original content to all other IP's194.158.32.0 - 194.158.63.255195.158.96.0 - 195.158.127.255and this is where I am lostTHanksPaul----- Original Message -----From: "Rob Marquardt" To: "WebDNA Talk" Sent: Thursday, September 09, 2004 5:54 PMSubject: Re: Hideif on IP range> on 9/9/2004 7:38 am, Paul Berman at paul@ast.jagrove.com so noted...>> > Works very well, to add another range to this do I nest the [If's}> >> > Many thnaks> > Paul> > ----- Original Message -----> > From: "Tim Robinson" > > To: "WebDNA Talk" > > Sent: Thursday, September 09, 2004 2:12 PM> > Subject: Re: Hideif on IP range> >> >> > [If ("[ipaddress]">"194.158.32.0")&("[ipaddress]"<"194.158.63.255"]> > [Then]Don't show stuff[/Then]> > [Else]Show stuff[/Else]> > [/If]>> I don't see how this would possibly work, since WebDNA pads IP addresses> with zeros, and even if it didn't you're doing numeric comparisons on> strings.>> Something like this would be required:>> [listwords words=[ipaddress]&delimiters=.][!]> [/!][math show=f]block[index]=[word][/math][!]> [/!][/listwords]>>> [If ("[block1].[block2]"="194.158")&([block3]>31)&([block3]<64)]> [Then]Don't show stuff[/Then]> [Else]Show stuff[/Else]> [/If]>>>>> Rob Marquardt> Designer/Resident Wirehead> Toast Design>> 800 Washington Avenue North> Minneapolis MN 55401> 612.330.9863 v> 612.321.9424 f> www.toastdesign.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/>-------------------------------------------------------------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/
"Paul Berman"
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:
Running WebCat from a CD-ROM (1997)
Stopping bad HTML propagation ? (1997)
Emailer setup (1997)
change the number format (1997)
Help! WebCat2 bug (1997)
Emailer choke (1997)
Webcat and Sybase on OSX...anyone doing this currently? (2003)
WebCatalog [FoundItems] Problem - LONG - (1997)
RE: Adding a product from another site (1997)
Looking for 24x7 ISP for WebCatalog (1998)
Dates - Search and Sorting (1999)
WebDNA 4.5 upgrade? (2002)
URL for Discussion Archive (1997)
Can you do this??? and other stuff (1997)
Tracking System? (1997)
RedHat dropping 7.x 8.x and 9.x - What linux for WebDNA? (2003)
SKU (1997)
Grepping text variable tags (was: No subject given) (2000)
Help name our technology! I found it (1997)
Logging purchases (1997)