For one of my websites I am making a comment box. In the past I have had a lot of trouble with spam bots. I have used captchas to protect my websites against these bots however some bots managed to bypass these captchas by using external services. I have also tried by checking the http agents however this turned out to be unreliable.
I am now looking for a way to protect my website against bots by using Javascript. I have tried to simply check if javascript is enabled and if so then I would display the form:
<script type="text/javascript">
document.write('<the form to display>');
</script>
However I believe this would be too simple as bots are getting smarter in executing Javascript. Could someone show me an example or guide me into the right direction how I could protect my website against bots by using Javascript?