Blacklist Control Center
Blacklist Control Center - User Guide
Page Location: ct/admin/blacklist.php
Menu Path: Admin Panel → Tools → Blacklist
Access Level: Administrator (requires login)
Last Updated: 2026-01-01
Overview
The Blacklist Control Center allows administrators to manage banned IPs, domains, and email addresses. This powerful moderation tool helps protect your site from spam submissions, malicious users, and unwanted content by blocking specific identifiers at multiple levels. It includes bulk blocking via keyword/domain lists, database scanning to retroactively mark existing blacklisted content, and individual entry management.
[Screenshot: blacklist-main-interface]
Getting to This Page
- Log in to the admin panel at
ct/admin/ctlogin.php - In the left sidebar, click Tools
- Click Blacklist or navigate directly to
ct/admin/blacklist.php
This page is used for site moderation and content control. Blacklisted galleries are automatically marked and can be deleted in bulk.
System Requirements
This page requires the following system dependencies to function properly.
PHP Requirements
Required PHP Extensions
Required PHP Functions
Folder Permissions
File Permissions
Server Requirements
Installation Requirements
External Dependencies
Page Layout
Header Section
The page header displays:
- Title: "Blacklist Control Center" with ban icon
- Breadcrumb: Dashboard > Blacklist Control Center
- Description: "Manage banned IPs, domains, and email addresses"
[Screenshot: blacklist-header]
Statistics Cards
Three statistics cards show current blacklist status:
[Screenshot: blacklist-stats-cards]
Features & UI Elements
Add to Blacklist Form
Purpose: Quickly add an IP, domain, or email to the blacklist.
Behavior:
- Entry is added to
tblBlacklistwith type='All' - Matching galleries are updated to accept='Blacklisted'
- Success message shows affected gallery count
[Screenshot: blacklist-add-form]
Scan & Blacklist Gallery Database
Purpose: Scan all galleries against the bulk blacklist and mark matches.
Button: "Scan & Blacklist Gallery Database"
Behavior:
- Reads entries from
theblacklist.txt - Scans
tblTgpfor matching URLs, emails, IPs, or domain IPs - Updates matching galleries to accept='Blacklisted'
- Displays results table with options to delete or pardon each
[Screenshot: blacklist-scan-results]
Blacklist Entries Table
Purpose: View and manage individual blacklist entries.
Features:
- In-line editing of entries
- Update Blacklist button (saves all changes)
- Remove individual entries
- Contact link for email addresses
[Screenshot: blacklist-entries-table]
Bulk Blacklist (FreeHosts & Keywords)
Purpose: Manage a comma-separated list of domains, keywords, and patterns to block in bulk.
Stored in: ct/dat/theblacklist.txt
The bulk list scans URLs only. The individual entries table scans URLs, email addresses, IPs, hostnames, domains, and page HTML.
You can add sponsor codes or partial paths like
smutserver.com/~username/ for targeted blocking.
[Screenshot: blacklist-bulk-list]
Step-by-Step Usage
Task 1: Block a Specific Domain
This workflow blocks a specific domain and marks all related galleries.
Steps:
- Navigate to Admin Panel → Tools → Blacklist
- In the "Add to Blacklist" section, enter the domain:
spammer-domain.com
- Click Add to Blacklist
- Review the success message showing how many galleries were affected
Result:
- Domain is added to tblBlacklist
- All galleries with URLs containing this domain are marked as Blacklisted
Task 2: Bulk Block Multiple Domains
Steps:
- Scroll down to Bulk Blacklist (FreeHosts & Keywords) section
- Add domains/keywords to the textarea, separated by commas:
spammer1.com,spammer2.com,badkeyword,freehost.example.net/~baduser/
- Click Update Bulk List
- Click Scan & Blacklist Gallery Database to apply the new rules
- Review the scan results showing affected galleries
Result: All matching galleries are marked as Blacklisted.
Task 3: Delete All Blacklisted Galleries
This action permanently deletes all blacklisted galleries. This cannot be undone.
Steps:
- Click Scan & Blacklist Gallery Database to see all blacklisted galleries
- Review the results table to verify the galleries should be deleted
- Click the link "Click here to delete them all"
- Confirm the deletion in the popup dialog
Result: All galleries with accept='Blacklisted' are permanently deleted.
Task 4: Pardon a Mistakenly Blacklisted Gallery
Steps:
- Click Scan & Blacklist Gallery Database
- Find the gallery in the results table
- Click Pardon in the Actions column
- Confirm the pardon action
Result: Gallery status is changed from 'Blacklisted' to 'Approved'.
Task 5: Remove an Entry from the Blacklist
Steps:
- Find the entry in the Blacklist Entries table
- Click Remove in the Actions column
- Confirm the removal
Result: Entry is deleted from tblBlacklist (but previously blacklisted galleries remain blacklisted).
Actions Reference
Gallery Actions
Entry Actions
Bulk Actions
How Blacklisting Works
Individual Entries (tblBlacklist)
When you add an entry to the blacklist:
- Entry is stored in
tblBlacklistwith a type field - All galleries matching the criteria are updated:
acceptis set to 'Blacklisted'newpostis set to 'BlackList'
Matching logic by type:
- email: Matches gallery's email field exactly
- ip: Matches gallery's IP field exactly
- domain: Matches if gallery URL contains the entry
- Any/All: Matches email, URL, or IP containing the entry
Bulk List (theblacklist.txt)
When you run Scan & Blacklist Gallery Database:
- Reads all comma-separated entries from
theblacklist.txt - For each entry (if length > 5 characters):
- Checks
domipfield - Checks if
urlcontains entry - Checks if
emailmatches entry - Checks if
ipmatches entry
- Updates matching galleries to accept='Blacklisted'
Error Messages & Troubleshooting
Common Errors
Troubleshooting
Problem: Bulk list changes not saving
Solution:
- Verify
ct/dat/theblacklist.txtexists and is writable (644) - Check for trailing commas that may cause parsing issues
- Ensure entries are properly comma-separated
Problem: Galleries not getting blacklisted
Solution:
- Verify entries are longer than 5 characters
- Check that the entry matches actual gallery data
- Use exact matches for IPs and emails
- Use partial strings for domain blocking
Problem: "Remove" not working
Solution:
- Verify JavaScript is enabled
- Check browser console for errors
- Ensure the entry has a valid ID in the database
Related Pages
- Gallery Review (
ct/admin/admin.php) - View and manage blacklisted galleries - Partner Control (
ct/admin/preferred.php) - Manage trusted partners (opposite of blacklist)
Tips & Best Practices
Use partial domain names: For broad blocking, use
badsite.com instead of http://www.badsite.com/page. This catches all variations of the domain.
Regular scans: Run "Scan & Blacklist Gallery Database" periodically to catch any galleries that were added before you added a blacklist entry.
Be careful with generic keywords: Blocking common words like "free" or "hot" may catch legitimate galleries. Use specific terms.
Export before changes: Copy the Export List before making major changes to the bulk list. This lets you restore if needed.
Blacklisting vs Deleting: Blacklisting marks galleries for review; you can pardon them later. Deleting is permanent.
Translatable Strings
The following text elements should be added to backend translations: