The official original Wordle and the official New York Times version both check a valid word list client-side. If you check the source of the web version, you can find a JavaScript file with the complete current valid word list.
https://www.reddit.com/r/wordle/comments/18st7bp/what_are_your_best_two_starting_words/

