Gallery Scanner
Gallery Scanner
What This Page Does
The Gallery Scanner checks all the external gallery links on your site for problems like broken links, slow loading pages, inappropriate content, and security issues. It can automatically flag, disable, delete, or blacklist galleries that have issues, helping you keep your site clean and professional.
Think of it as a quality control tool that visits each gallery URL and checks for 29 different problems, then takes whatever action you tell it to.
[Screenshot: page-overview]
How to Get Here
Navigate to Admin Panel > Galleries > Gallery Admin, then click the Scanner button in the top navigation bar.
Understanding the Page
When you first open the Gallery Scanner, you'll see several sections from top to bottom:
Category Selection
A list of all your gallery categories with checkboxes. Each category shows how many galleries it contains that can be scanned. You can select all categories at once with the Select All Categories checkbox, or pick specific ones.
Gallery Filter Options
Radio buttons and checkboxes that let you narrow down which galleries to scan. For example, you can scan only approved galleries, only pending ones, or only galleries marked as "on-site."
Scan Tests
Two columns of checkboxes showing 29 different types of problems the scanner can look for. Most are enabled by default. Each test has a name and a brief explanation of what it checks.
Action Settings
For each type of problem, you can choose what action to take when that problem is found. Your choices are:
- Flag Only - Just make a note of it (the safest option)
- Disable - Hide the gallery from your site
- Delete - Remove the gallery permanently
- Blacklist - Block the submitter and all galleries from that domain
AJAX Processing Settings
Controls for how fast the scanner works. You can set how many galleries to scan at once (concurrent requests) and how long to wait between batches.
Scan Controls
Big green Start AJAX Scanning button to begin, plus buttons to pause, resume, or stop the scan once it's running.
Progress Display
Once scanning starts, this area shows a progress bar, statistics (how many scanned, how many violations found), and a live scrolling feed of results.
Common Tasks
How to Run Your First Scan
Before you run a scan that makes any changes, it's smart to do a test run with "Flag Only" to see what would be affected.
- Click Select All Categories to scan all your galleries.
- Make sure Scan Approved and Scan Pending are both checked (they are by default).
- Leave all the scan tests at their default settings (most are already enabled).
- Scroll down to the Action Settings section.
- Verify that every single action is set to Flag Only (this is the default).
- Set Concurrent Requests to 2 (Recommended) and Request Delay to 1 Second (these are also defaults).
- Click the big green Start AJAX Scanning button.
- Watch the progress bar and results feed as the scanner checks each gallery.
- When it finishes, review the completion summary to see what problems were found.
- Click View Reports to see the detailed list of flagged galleries.
[Screenshot: first-scan-example]
How to Scan Specific Categories
If you only want to scan certain categories (for example, just your "Amateur" category):
- Leave the Select All Categories box unchecked.
- Scroll through the category list and check only the categories you want.
- The scanner will skip all unchecked categories.
This is helpful when you're testing or when you know a specific category has problems.
How to Set Up Automatic Actions
Once you've done a test run and you're comfortable with what the scanner finds, you can set it to take automatic actions.
Example: Automatically disable galleries with 404 errors
- Scroll to the Action Settings section.
- Find the row for 404 Error.
- Click the Disable radio button for that row.
- Leave all other actions at Flag Only for now.
- Run the scan.
- Any gallery that returns a 404 error will be automatically set to "Disapproved" status, which hides it from your site.
Example: Automatically blacklist galleries with banned words
- Find the Banned Words row in Action Settings.
- Click the Blacklist radio button.
- Run the scan.
- Any gallery containing banned words will be blacklisted, and all other galleries from the same domain will also be blocked.
How to Pause or Stop a Scan
If you need to pause the scan to review results or because you want to make changes:
- Click the Pause Scanning button while a scan is running.
- The scan stops immediately and the button changes to Resume Scanning.
- Review the results so far in the live feed.
- Click Resume Scanning to pick up where you left off.
- Or click Stop Scanning to end the scan permanently.
Pausing is useful if you notice unexpected results and want to adjust settings before continuing.
Filters and Search
Gallery Filters
The gallery filter options control which galleries get scanned. Here's what each one does:
Understanding Scan Tests
The scanner can check for 29 different types of problems. Here are the most important ones:
Basic Tests (Always Useful)
Content Tests
Security Tests
SEO Spam Tests
AJAX Processing Settings
These settings control how fast the scanner works:
When to adjust:
- Use 1 concurrent request if you're getting timeout errors or if target sites are blocking you
- Use 3-5 concurrent requests if you have a fast server and need to scan thousands of galleries quickly
- Use longer delays (2-5 seconds) if target sites are rate-limiting you
Understanding the Results
Progress Display
Once scanning starts, you'll see:
- Progress bar - Visual indicator of how far along the scan is
- Status line - "Scanning X galleries with Y concurrent requests"
- Statistics - How many processed, how many violations, how fast (galleries per minute)
- Live results feed - Scrolling list of each gallery as it's scanned
Result Colors and Icons
The results feed uses emoji icons to show what was found:
Green checkmark - Gallery is clean, no problems found
Yellow/orange icons - Warnings like slow speed or JavaScript
Red icons - Serious problems like 404 errors or banned words
Each result line shows:
- The gallery ID and category
- The URL (shortened)
- How long it took to load
- What problems were found (with icons)
- What action was taken
Example:
[10:15:23] Gallery 12345 [Amateur]: http://example.com/gall... - 1250ms - Violations: 🚧 ⚠️ Actions: 🏴 (javascript: 5 instances, popups: 2 instances)
Completion Summary
When the scan finishes, you'll see a summary box with:
- Total Processed - How many galleries were scanned
- Total Violations - How many had problems
- Clean Galleries - How many were problem-free
- Top Violations - The 5 most common problems found
- Actions Taken - How many flagged, disabled, deleted, blacklisted
Two buttons at the bottom:
- Start New Scan - Reload the page to run another scan
- View Reports - Jump to the Reports page to review all flagged galleries
Tips for New Users
- Always test with Flag Only first - Run at least one scan with all actions set to "Flag Only" before enabling automatic deletions or blacklisting.
- Start with one category - Your first few scans should be on a small category so you can see results quickly and understand what the scanner finds.
- Review the reports - After flagging galleries, look at the reports page to see if the scanner's judgments make sense for your site.
- Enable actions gradually - Start with just 404 detection on "Disable," then add more actions as you get comfortable.
- Use 2 concurrent requests - This balances speed with server friendliness. Only increase it if you have thousands of galleries and need faster processing.
- Don't scan too frequently - Once a week or once a month is plenty for most sites. Scanning the same galleries every day wastes resources.
Troubleshooting
The scan won't start
What you see: You click "Start AJAX Scanning" but nothing happens.
How to fix it:
- Make sure you selected at least one category. The scanner won't run if no categories are checked.
- Check your browser's console for error messages (press F12 and look at the Console tab).
- Make sure your browser isn't blocking JavaScript or AJAX requests.
The scan stalls at 0%
What you see: The progress bar doesn't move past 0%.
How to fix it:
- Check the browser console for errors (F12).
- Try reducing Concurrent Requests to 1.
- Refresh the page and start a new scan.
- Your server might not be able to reach external URLs - check with your hosting provider.
Too many violations are being flagged
What you see: Almost every gallery shows violations.
How to fix it:
- Review which scan tests are enabled. Some tests (like JavaScript Detection) will flag many legitimate galleries that use normal JavaScript.
- Disable tests that don't matter to you. For example, if you don't care about video content, disable "Video Content Detection."
- Some galleries naturally have features like JavaScript or iFrames that the scanner flags. This doesn't always mean the gallery is bad.
Galleries are being deleted or disabled by mistake
What you see: Good galleries are being removed from your site.
How to fix it:
- Immediately click Stop Scanning to halt the process.
- Review the Action Settings - make sure you didn't accidentally set an action to Delete or Blacklist.
- Check the Reports page to see what violations were found.
- If legitimate galleries were affected, go to Gallery Management and manually re-enable them.
- Next time, use Flag Only until you're sure the actions are correct.
The scan is too slow
What you see: Scanning takes hours to complete.
How to fix it:
- Increase Concurrent Requests to 3 or 5 for faster processing.
- Reduce Request Delay to 500ms or 0ms if the target sites can handle it.
- Disable slow tests like "Broken Images Check" if you don't need them.
- Scan one category at a time instead of all categories.
A gallery won't scan
What you see: One specific gallery shows "Failed to connect" or "Failed to fetch content."
How to fix it:
- Open the gallery URL in your browser to see if it loads for you.
- The gallery might be offline or blocking your server's IP.
- The gallery might be slow and timing out. Try increasing the timeout (this requires editing the PHP file).
- If the gallery is permanently dead, manually disable or delete it from Gallery Management.
Related Pages
Important Reminders
- Delete and Blacklist are permanent - These actions cannot be undone. Deleted galleries are removed from your database forever. Blacklisted galleries block the entire domain and submitter IP.
- Blacklist affects all galleries - When you blacklist a gallery, ALL galleries from the same domain are also marked as blacklisted, not just the one with the problem.
- Start with Flag Only - Always do a test scan with "Flag Only" before enabling automatic actions.
- Back up your database - Before running a large scan with Delete or Blacklist actions, make a backup of your database so you can restore if something goes wrong.