There are two verses in the Quran that address this question, Surah An-Nisa - 4:140 | Quran.com:
He has already revealed to you in the Book that when you hear Allah’s revelations being denied or ridiculed, then do not sit in that company unless they engage in a different topic, or else you will be like them.1 Surely Allah will gather the hypocrites and disbelievers all together in Hell.
And when you come across those who ridicule Our revelations, do not sit with them unless they engage in a different topic. Should Satan make you forget, then once you remember, do not ˹continue to˺ sit with the wrongdoing people.
listed in order.
The above verses are clear that a muslim shouldn't sit with people who mock Islam. Does visiting sites like reddit/ex-Muslim, wikiislam and quora where Islam is mocked and ridiculed prohibited as per above verse? Does watching videos(non debates) of david wood also fall in the above category?