c# - Does using System.Threading.Thread.Sleep(x) slow down bots hitting site? -
i came across code today added in logon post action of site.
system.threading.thread.sleep(3000); //slow down bots
(it worth noting application limits failed attempts before forcing user click out of page.)
i wondering if sleeping system thread doing comment suggests, slowing down bots trying access site?
and if slow down bots, effective enough worth having implemented?
thanks.
no, won't. reason login requests on bot's side (probably) asynchronous. after request sent, bot releases thread , moves on until server responds.
on other hand, locking own thread, waiting, instead of handling other requests legit users. you'd shooting in foot.
Comments
Post a Comment