Allow-Deny: Solved with [Getchars]

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 18462
interpreted = N
texte = Hi, Here is a small tip on how to Allow/Deny a webpage, using webcat. 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] (remember that a . also equals a character and that the [ipaddress] tag expands each numerical range to 3 digits - .25. becomes .025.) and to allow the domain imgreat.co.jp. [showif [getchars start=1&end=14&from=end][ipaddress][/getchars]=imgreat.co.jp.]<[/showif] (you need to go from the end with domain names and [ipaddress] also adds a . which needs to be considered when counting) When allowed[showif [math]ERRORCOUNT[/math]>0]This is a great page[/showif] When denied[hideif [math]ERRORCOUNT[/math]>0]Sorry. You have no access to this page.[/hideif] Regards,Kevin FurutaDirector - Internet SolutionsKoyosha Graphics Japan, Koyosha Graphics of Americakevin@koyosha.co.jp 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)
Hi, Here is a small tip on how to Allow/Deny a webpage, using webcat. 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] (remember that a . also equals a character and that the [ipaddress] tag expands each numerical range to 3 digits - .25. becomes .025.) and to allow the domain imgreat.co.jp. [showif [getchars start=1&end=14&from=end][ipaddress][/getchars]=imgreat.co.jp.]<[math]ERRORCOUNT=ERRORCOUNT+1[/MATH]>[/showif] (you need to go from the end with domain names and [ipaddress] also adds a . which needs to be considered when counting) When allowed[showif [math]ERRORCOUNT[/math]>0]This is a great page[/showif] When denied[hideif [math]ERRORCOUNT[/math]>0]Sorry. You have no access to this page.[/hideif] Regards,Kevin FurutaDirector - Internet SolutionsKoyosha Graphics Japan, Koyosha Graphics of Americakevin@koyosha.co.jp Kevin Furuta

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:

WebCat2 - Getting to the browser's username/password data (1997) sorting in found set. (2001) Emailer Timing out (1999) [append] (1997) Simple way to create unique SKU (1997) Download capabilities (1997) Initiating NewCart (1997) Databases going to sleep (1998) Replace and Date (2002) Two options to consider (2008) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) New Site Announcement (1998) [DOS]/DOS query perhaps OT (2003) Problems passing [SKU] with $Replace in 2.0 (1997) [math] show=F exists? (1997) taxTotal, grandTotal (1997) Summing fields (1997) WebCat2 - many [carts] on one template page? (1997) Nested tags count question (1997) Search/sort in URL Was: GuestBook example (1997)