The Security Threats Log in WP Ghost records the hostile requests WP Ghost detects: what was targeted, from which IP and country, and whether it was blocked. It covers exploit scans, PHP file probing, requests to blocked paths, malformed HTTP requests and repeated attacks from one IP.
You can filter the log by threat type, country, status and time, and act on an entry by whitelisting its path or rule or blacklisting its IP.
What is the Security Threats Log?

The log covers external threats only. User activity is in the User Events Log.

How to activate the Security Threats Log
- Go to WP Ghost > Logs > Settings.
- Check that Log Security Threats is on. It is on by default.
- In WP Ghost Premium, choose the Retention: 7 days (default), 14 days or 30 days. Older entries are deleted once a day. The free plugin keeps entries for 7 days.
- Click Save.

WP Ghost then records each threat it detects.
What gets logged
The log records the malicious or suspicious requests WP Ghost detects:
- probing for vulnerable or missing PHP files
- exploit scans against plugins, themes and core files
- requests to blocked or protected paths
- malformed or suspicious HTTP requests
- repeated hostile traffic from the same IP
An attempt is logged even when it is blocked.
Each entry holds:
- the threat type
- the targeted path or URL
- the source IP address and country
- the HTTP method and protocol
- the detection rule and the matched pattern
- the date and time
- the status (“Prevented” when the request was blocked)
Reading the threats report
View detected threats at WP Ghost > Logs > Security Threats.

The report lists the newest threats first, with the columns Threat Type, Location, Details, Status and Date.
In WP Ghost Premium, pick All Threat Types, All Statuses (Prevented or Passed), All Countries or All Time (last 1, 7, 14, 21 or 30 days) and click Filter. The search box matches the IP, the path, the threat type, the request ID and the rule code. Export CSV downloads the list.
The country filter shows how many threats come from one country before you turn on country blocking for it.

Responding to threats
Each threat entry includes an action menu with four response options:
| Action | What it does |
|---|---|
| Threat Details | Shows the full request: path, source IP, HTTP status, detection rule and matched pattern, user agent, referrer, protocol and request ID. |
| Whitelist Path | Allows that URL or endpoint when a legitimate request is blocked. The path is added to Whitelist Paths in WP Ghost > Firewall > Whitelist (see Whitelist IPs and Paths). |
| Whitelist Rule | Whitelists the detection rule that a trusted integration, custom application or third-party service triggers. The rule is added to Whitelist Rules in WP Ghost > Firewall > Whitelist. |
| Blacklist IP | Blocks an IP that keeps targeting your site, until you remove it from the list. The IP is added to Blacklist IPs in WP Ghost > Firewall > Blacklist (see Blacklist). |


You can edit these entries later. Whitelisted paths and rules are in WP Ghost > Firewall > Whitelist. Blocked IPs are in WP Ghost > Firewall > Blacklist.
WP Ghost Premium can also block repeat offenders for you. Automate IP Blocking in WP Ghost > Firewall > Firewall is on by default and blocks an IP for one hour after 5 threats in 60 seconds. See Automate IP Blocking.

How to use the log
The Threats Log shows the hostile requests WP Ghost detected in WordPress and whether each one was blocked. Requests stopped earlier by server rules (.htaccess or Nginx) do not reach WordPress, so they are not in the log. Use the log together with your hack prevention setup.
A “Prevented” status on an exploit scan or an injection attempt means the firewall stopped that request.
One IP that sends hundreds of requests to different plugin paths is a scanner, and you can stop it with IP blacklisting. Many IPs from one country that probe wp-login.php point to a brute force campaign, which country blocking can stop.
When a legitimate request triggers a firewall rule, the log shows which rule fired and which path was blocked. You can whitelist the path or the rule from the action menu of that entry.
GDPR and data storage
Threat data is stored in your WordPress database, in the table hmwp_logs with your database prefix (for example wp_hmwp_logs). It is collected for security monitoring and incident analysis only. Entries older than the Retention period are deleted once a day.
Once a day WP Ghost sends daily totals for the last 7 days to the WP Ghost Dashboard. Each entry holds the date, the number of blocked threats and the number of threats that passed. No visitor IP addresses, request URLs or request details are sent.
Frequently asked questions
Is this a premium feature?
No. Log Security Threats is in the free version too, and the free log shows the most recent page of detected threats. WP Ghost Premium adds the full history with filters, search and export, and lets you set the retention period.
Does logging affect performance?
Minimally. Threat logging writes to the local database only when a malicious request is detected. Legitimate traffic is not logged. The retention setting automatically cleans up old entries to keep database size manageable.
What if a legitimate request shows as a threat?
Open the threat details to see which rule was triggered and which path was blocked. Use Whitelist Path to allow that specific URL, or Whitelist Rule to allow all requests matching that detection pattern. You can edit the whitelist in WP Ghost > Firewall > Whitelist.
Is this the same as the user Events Log?
No. The Security Threats Log records external threats: malicious requests from bots and attackers. The User Events Log records activity inside your dashboard, such as admin logins, plugin changes and settings changes.
Does WP Ghost modify WordPress core files?
No. Threat logging uses WP Ghost’s own database table (hmwp_logs) and WordPress hooks. No core files are modified. Disabling the feature stops logging instantly.
