Re: Hideif on IP range

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59328
interpreted = N
texte = Hi Rob Thanks for the input, I may be werong but i cannot see the site but the client who is on a different IP said he could Ultimately I need to block ranges like this to show alternate content to these IP's and the original content to all other IP's 194.158.32.0 - 194.158.63.255 195.158.96.0 - 195.158.127.255 and this is where I am lost THanks Paul ----- Original Message ----- From: "Rob Marquardt" To: "WebDNA Talk" Sent: Thursday, September 09, 2004 5:54 PM Subject: 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:

    
  1. Re: Hideif on IP range ( Brian Fries 2004)
  2. Re: Hideif on IP range ( Donovan Brooke 2004)
  3. Re: Hideif on IP range ( Rob Marquardt 2004)
  4. Re: Hideif on IP range ( "Paul Berman" 2004)
  5. Re: Hideif on IP range ( Brian Fries 2004)
  6. Re: Hideif on IP range ( "Paul Berman" 2004)
  7. Re: Hideif on IP range ( Jay Van Vark 2004)
  8. Re: Hideif on IP range ( Rob Marquardt 2004)
  9. Re: Hideif on IP range ( "Paul Berman" 2004)
  10. Re: Hideif on IP range ( Tim Robinson 2004)
  11. Re: Hideif on IP range ( "Paul Berman" 2004)
Hi Rob Thanks for the input, I may be werong but i cannot see the site but the client who is on a different IP said he could Ultimately I need to block ranges like this to show alternate content to these IP's and the original content to all other IP's 194.158.32.0 - 194.158.63.255 195.158.96.0 - 195.158.127.255 and this is where I am lost THanks Paul ----- Original Message ----- From: "Rob Marquardt" To: "WebDNA Talk" Sent: Thursday, September 09, 2004 5:54 PM Subject: 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:

Mystery authentication (1997) [searchstring] (2000) Need relative path explanation (1997) complete escaped ascii chart - importing and exporting files question (1998) [OT] Mozilla | Was: R.I.P. Netscape (2003) Cookie set browser session. (1998) WC --> printer (1998) Shipping by order total (2003) Cumulative Shipping charge calculations - your help please. (1997) [IpAddress] Tag (1997) Is this possible, WebCat2.0 and checkboxes (1997) Using Currencies other than Dollars (1997) problems with WebCat-Plugin () Groups doesn't work (1997) Sv: Search problems! (1999) Botched cart numbers in webmerchant 2.1x email with webcat 3 (1998) [/application] error? (1997) Re:[ShowIf] and empty fields (1997) Shared conversion under WebTen (1998) [WebDNA] Where is Speed Test? (2009)