I've been adding a field into forms and then hiding it with display: none

If a spam bot comes across the form it automatically fills in the field and which is then rejected after validation

For the purpose of stopping spam bots it seems to be pretty successful

However, how does this level with accessibility? Any advice is welcome.