Most are probably using cloud APIs. I've looked at AWS's before: https://aws.amazon.com/rekognition/content-moderation/. I'm sure there are a lot of them available.
It should be fairly easy to run their own models too. This nsfw detecting model is the most popular image classifier on hugging face: https://huggingface.co/Falconsai/nsfw_image_detection