// Display a warning message for NSFW content if ($post->contentFlag === ContentFlag::NSFW) echo '<p>Warning: This content is NSFW.</p>';
For , abstract the engine behind an interface. Start with a cloud API (fast to implement), then swap in a self‑hosted model when volume grows.
if (preg_match('/badword1|badword2|adult|xxx/i', $_POST['comment'])) die("Your comment contains inappropriate language.");



