Some sites keep code outside the standard WordPress folders, for example a private vendor library, a custom application directory, or an externally deployed plugin. Custom directories (Pro) adds those paths to malware scans.
Adding a custom directory
- Go to Aegisify Shield → Malware Scan → Malware Scanner → Scan Settings.
- Under Custom directories, click Add custom directory.
- Enter one valid site path per field.
- Click Save Changes, then run a scan.
Good candidates
- Custom code folders used by your theme or plugins.
- Private libraries loaded by the site.
- Any folder that contains PHP and is reachable by the web server.
Avoid
- Cache folders.
- Backup archives.
- Large generated-media folders.
These increase scan time and produce false positives without adding meaningful coverage.
Security note
Only add paths you control and understand. If you find PHP in a location you did not expect, that itself is worth investigating.
After adding a path
Run a manual scan and review the results. Code in custom locations is often unminified developer code, which can produce findings that need a quick review. Mark confirmed false positives as safe so future scans stay focused.
Requirements
Custom scan paths require an active Aegisify subscription.
Related: Scan directories selection, Full malware scan.
