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:

Referrer field to header field conversion (1997) Quantity/price formula (1998) Multiple cart additions (1997) HTML encoding in URLs (1997) WebDNA to PHP (2008) [WebDNA] lookup in tables defined in functions - bug? (2016) different show next (1997) WC 4.02rc2 (2001) [ShowCart]-- was ThankYou page problems (1997) cc auth with [purchase] (1998) Creating 404 Not Found pages (1999) Some Questions (1997) Not exercising the code as much as in other betas (2000) NOT Search (1998) problems with 2 tags (1997) Multiple Items (1998) Shopping carts and reloading pages (1997) Dang... Sorry, WebDNA server not running (again)? (2003) Hiding HTML and breaking the page (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997)