I'm just curious to know, since I have a website with a form, if it is possible to detect website automation?

For example if the user fills the form with C# code and then clicks the button with C# code. Is it possible to detect such things?

I don't want any code to do that, just something that struck my mind

What I know, it is impossible?