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 viathe [getchars], errorcount and showif/hideif tags. So, if you want toblock 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] tagexpands each numerical range to 3 digits - .25. becomes .025.)and to allow the domain imgreat.co.jp.[showif [getcharsstart=1&end=14&from=end][ipaddress][/getchars]=imgreat.co.jp.]<[/showif](you need to go from the end with domain names and [ipaddress] alsoadds 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:
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 viathe [getchars], errorcount and showif/hideif tags. So, if you want toblock 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] tagexpands each numerical range to 3 digits - .25. becomes .025.)and to allow the domain imgreat.co.jp.[showif [getcharsstart=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] alsoadds 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:
[WebDNA] Friday's.. WIP thread (2009)
[WebDNA] WebDNA 7 (2011)
Country & Ship-to address & other fields ? (1997)
how do we turn off staticpages page creation? (2003)
WebCat virtual postcard is done! Thanks for the help! (1998)
[WebDNA] File Upload Problem (2009)
Redirect (2000)
WebCat2b13MacPlugIn - syntax to convert date (1997)
[searchString] (1997)
WebCat2b13MacPlugIn - [include] (1997)
Formating found categories (1997)
Time Display from Database (1997)
Sorting error (1997)
Sku numbers (1997)
Navigator 4.01 (1997)
WebCat2: Items xx to xx shown, etc. (1997)
WebCat2: Items xx to xx shown, etc. (1997)
Re:quit command on NT (1997)
WebCat2 Append problem (B14Macacgi) (1997)
[WriteFile] problems (1997)