locked
Person or bot? Is there a way to tell? RRS feed

  • Question

  • User186656733 posted

    When a page gets a request, is there a way to tell if it is a person or a bot?

    I looked at Request.Browser which has a lot of information, and considered Request.Browser.Crawler and Request.Browser.ScreenPixelsHeight (and Width).  From my observations, ScreenPixelsHeight (and Width) are only filled when page is posted back.

    Help most appreciated.

    Tuesday, September 4, 2018 3:47 AM

All replies

  • User409696431 posted

    Captchas would not need to exist if you could detect bots so easily.  Consider using one, such as Google's captcha.  If your site asks people to log in, use it on the login page.  If you have a form anyone can submit, use it on that page.

    Wednesday, September 5, 2018 4:31 AM
  • User1724605321 posted

    Hi Saavik ,

    Captchas are probably the most common approach to making sure a user is humanoid, and generally they are difficult to automatically get around. 

    If you don't need Captchas , you can also parse the USER_AGENT string and compare it against such a bot list.  Such as this one :

    http://www.robotstxt.org/db.html  

    But of course it's not such reliable .Someone can easily hack useragent string in browser .

    You can refer to below link for more details about different solution to this issue :

    https://stackoverflow.com/a/7154667/5751404 

    Best Regards,

    Nan Yu

    Wednesday, September 5, 2018 5:56 AM