Re: Allow-Deny: Solved with [Getchars]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18465
interpreted = N
texte = On 6/25/1998 6:32 pm, Kevin Furuta so noted...>If you want to allow by IP range and/or domains, the best way is via the >[getchars], errorcount and showif/hideif tags. So, if you want to block out >any IP address outside of 202.234.025. you would do this: > > > >[showif [getchars start=1&end=11][ipaddress][/getchars]=202.234.025] > >[/showif]I'll still contend that[hideif [ipaddress]~202.234.025]text to be blocked for an address range[/hideif]would be an easier way to handle the allow-deny.>[showif [getchars >start=1&end=14&from=end][ipaddress][/getchars]=imgreat.co.jp.] > >[/showif]How are you doing the DNS lookup to convert [ipaddress] from an IP address to a domain name as shown here? If there's something built into WebCat for this, I could make some serious use of it.Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Allow-Deny: Solved with [Getchars] (Kevin Furuta 1998)
  2. Re: Allow-Deny: Solved with [Getchars] (Rob Marquardt 1998)
  3. Allow-Deny: Solved with [Getchars] (Kevin Furuta 1998)
On 6/25/1998 6:32 pm, Kevin Furuta so noted...>If you want to allow by IP range and/or domains, the best way is via the >[getchars], errorcount and showif/hideif tags. So, if you want to block out >any IP address outside of 202.234.025. you would do this: > >[math]ERRORCOUNT=0[/MATH]> > >[showif [getchars start=1&end=11][ipaddress][/getchars]=202.234.025] >[math]ERRORCOUNT=ERRORCOUNT+1[/MATH]> >[/showif]I'll still contend that[hideif [ipaddress]~202.234.025]text to be blocked for an address range[/hideif]would be an easier way to handle the allow-deny.>[showif [getchars >start=1&end=14&from=end][ipaddress][/getchars]=imgreat.co.jp.] >[math]ERRORCOUNT=ERRORCOUNT+1[/MATH]> >[/showif]How are you doing the DNS lookup to convert [ipaddress] from an IP address to a domain name as shown here? If there's something built into WebCat for this, I could make some serious use of it.Rob Marquardt Designer/Resident Wirehead Toast Design300 First Avenue North, Suite 150 Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com Rob Marquardt

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:

WebCatalog can't find database (1997) Clickable maps and WebCatalog? (1996) [WebDNA] Data Type Bool (2009) 2 questions (2000) [SearchString] problem with [search] context (1997) Multiple prices (1997) For those of you not on the WebCatalog Beta... (1997) WebMerchant when CC network is down (1998) Slow Server (2005) Setting a null value for reply to address using sendmail... (2001) Emailer [cart] file names (1997) BCC Limits (2003) lookups or math? (1998) includes and cart numbers (1997) emailer (1997) FEW QUESTIONS (1997) (1997) WebCat2b12 - nesting [tags] (1997) totals (1997) [TCPConnect] Errors (2003)