• captcha.src

    From Digital Man@VERT to Lord Blackfair on Thu Jul 29 16:19:14 2021
    Here's the code you emailed me (please post here in the future instead):ãã#Captcha program by Keith Cunningham edit to how you would likeã!include sbbsdefs.incã:HomeãINT IãSTR SãRANDOM I 999999ãCLSãPrint "\r\nWelcome to the Login Captcha.\r\n"ãPrint "\r\nTo prove you are not a BOT please enter the number below below.\r\n"ãPRINT ""ãPRINT ""ãprint Iãprint "\r\n"ãGETSTR STR 6 K_NUMBERãCOMPARE I SãIF_falseãgoto wrongãPrint "\r\n\r\nWelcome to the BBS!!!\r\n\r\n"ãpauseãend_ifãend_cmdã# edit this line as to Where you would exit toã:wrongãPrint "\r\nThat is not correct, Please try again.\r\n"ãpauseãgoto homeãend_cmdããI see a couple of issues:ã1. The first end_if should be placed right after your "goto wrong" statement.ãNothing following that "goto" will be executed in the "else" case, which it appears you intended.ã2. The end_cmd's don't appear to belong here at all since you have no corresponding cmd_home statement (nor do you necessarily want/need one for such a simple script).ããHere's a simplified version which I think does what you want:ã#Captcha program by Keith Cunningham edit to how you would likeã!include sbbsdefs.incã:HomeãINT IãSTR SãRANDOM I 999999ãCLSãPrint "\r\nWelcome to the Login Captcha.\r\n"ãPrint "\r\nTo prove you are not a BOT please enter the number below below.\r\n"ãPRINT ""ãPRINT ""ãprint Iãprint "\r\n"ãGETSTR STR 6 K_NUMBERãCOMPARE I SãIF_trueã Print "\r\n\r\nWelcome to the BBS!!!\r\n\r\n"ã pauseã returnã end_ifãPrint "\r\nThat is not correct, Please try again.\r\n"ãpauseãgoto homeã-- ã digital manããSling Blade quote #8:ãKarl Childers: I don't reckon I got no reason to kill nobody.ãNorco, CA WX: 90.9øF, 35.0% humidity, 8 mph ENE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MRO@VERT/BBSESINF to Digital Man on Thu Jul 29 20:04:55 2021
    Re: captcha.srcã By: Digital Man to Lord Blackfair on Thu Jul 29 2021 04:19 pmãã > Here's the code you emailed me (please post here in the future instead):ã >ã > #Captcha program by Keith Cunningham edit to how you would likeã > !include sbbsdefs.incãããMy capcha script adds them to an ip blocklist first, then removes that entry if they pass the challenge code. that way it gets the bots.ããwhich doesnt really do much because sometimes i have one guy attacking me so much it just drags down synchronet. then he goes in my firewall.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã