A lightweight, single-file PHP API for detecting NSFW (Not Safe For Work) content from image URLs.
Just upload
index.phpto your server and start analyzing images instantly.
- 🧩 Single-file deployment (no dependencies)
- 🔗 Analyze images via direct URL
- 🚫 Detect NSFW categories (Porn, Sexy, Hentai, etc.)
- 📊 Confidence scoring & risk levels
- ⚙️ Configurable sensitivity
- ⚡ Fast and easy integration
Upload the index.php file to your server or hosting.
Then send a request:
GET /index.php/?url=https://example.com/image.jpg{
"success": true,
"isSafe": false,
"confidence": 97,
"recommendation": "Content detected as Sexy. Consider filtering or reviewing.",
"fileInfo": {
"width": 960,
"height": 1280,
"size": 150561
},
"predictions": [
{
"category": "Sexy",
"probability": 97.47,
"risk": "High"
}
]
}- Receives an image URL
- Sends it to an external NSFW detection API
- Processes classification results
- Returns structured JSON response
| Parameter | Type | Description |
|---|---|---|
| url | string | Image URL to analyze |
- Porn
- Sexy
- Neutral
- Hentai
- Drawing
- PHP 7.4+
- cURL enabled
- Content moderation systems
- Upload filtering
- Social media apps
- Bots & automation tools
MIT License