The common infectionsChapter 18 of 3211 min read
Phishing Pages on a WordPress Site: Find and Remove Them
A phishing page can be served from WordPress, a standalone folder or another application under the same hosting account. Trace the reported URL before deleting anything, then remove the malicious content and close the access path.
By Hamza Ahmad AslamAI & WordPress Developer | Speed Optimization & Site Security

In this guide
A phishing page on a WordPress site is an unauthorized page or file that impersonates another service or asks visitors for credentials, payment details or other sensitive information. Record the reported URL first, find what serves it, preserve evidence, then remove only the confirmed malicious content. A phishing page may sit outside WordPress even when it uses your domain.
What is a phishing page on a WordPress site?
A phishing page on a WordPress site is content placed on your domain to deceive visitors into submitting sensitive information or taking another unsafe action.
It may copy a familiar login, delivery, banking, webmail or account-verification page. It can also imitate your own site's login or checkout.
Do not classify a page as phishing only because it contains a password or payment form. WordPress login pages, membership account pages, single-sign-on flows and WooCommerce checkout pages can all be legitimate.
Compare the suspected page with the site's documented flows, its expected URL and the team that owns that feature. If the page impersonates an unrelated service, appeared without authorization or sends information somewhere unexpected, treat it as an incident.
Google describes phishing and similar deceptive content as social engineering. Its documentation on deceptive pages and phishing (opens in a new tab) also directs site owners to remove the deceptive content and correct the underlying problem.
What do visitors and site owners see when phishing pages are present?
Visitors may see an unfamiliar page on your domain, a copied brand login, a browser security warning or a URL that your team never created.
Site owners may first hear about the problem through:
- a visitor reporting an unfamiliar URL;
- the hosting provider reporting abusive content;
- Google Search Console listing deceptive pages under Security Issues;
- an external abuse report identifying a specific path;
- search results exposing URLs that do not belong to the site.
Do not visit a reported phishing page and enter test credentials. Record the URL and inspect it without submitting its forms.
A warning may identify only a sample of the affected URLs. Google explicitly tells site owners to clean the issue throughout the site, rather than assuming the sample is complete.
How do phishing pages get onto a WordPress hosting account?
Phishing pages get onto a hosting account when an attacker gains a way to create or change web-accessible content.
Possible paths include a compromised WordPress installation, vulnerable software, a stolen hosting or file-transfer credential, an unauthorized administrator, another hacked application under the same account or broader account access.
The presence of a phishing URL therefore does not prove that a WordPress post or plugin created it. Chapter 6, How Was My WordPress Site Hacked? Finding the Entry Point in the Logs, covers the later entry-point investigation.
If you need the broader incident workflow while working through this chapter, use How to clean a hacked WordPress site and stop it happening again.
Why can a phishing page exist outside WordPress?
A phishing page can exist outside WordPress because a web server can serve files directly from any web-accessible path configured for the domain.
Apache's DocumentRoot identifies the main directory from which files are served, although directives such as aliases can map other locations. Nginx can map requests through root, alias, proxying and other location rules.
That means /account-check/ might be:
- a WordPress route;
/public_html/account-check/index.html;- a PHP file in a standalone folder;
- part of another application;
- a server alias or mapped directory.

Deleting a WordPress Page with the slug account-check will not remove /public_html/account-check/index.html.
How do I confirm the exact phishing URL and server response?
Confirm the reported URL before changing files so you know exactly what must stop working.
-
Copy the complete reported URL, including its path. Record the source of the report and the time you received it.
-
Fetch only the response headers with curl. The
-Ioption sends a HEAD request and retrieves headers (opens in a new tab).
curl -I https://example.com/account-check/
Example output, illustrative:
HTTP/2 200
content-type: text/html
server: nginx

If the response contains a Location header, record that destination and check it separately. Do not submit any form on the page.
-
Record whether the response is
200, a redirect, an error or something else. Also record whether the URL behaves differently when logged out. -
Ask the host for the request log entry if you do not have server log access. Apache and Nginx access logs can show the requested path, status and other configured request information.
The step worked when you have the exact URL, its current HTTP response and the report source written down.
How do I map the phishing URL to a file or application on the server?
Map the URL by identifying the site's web root and then checking how the web server handles that path.
- Find the domain's configured document root in the hosting panel or virtual-host configuration.
For Apache, look for the DocumentRoot directive. For Nginx, inspect the relevant server and location blocks, including root, alias and request-routing rules.
- Compare the requested path with that mapping.
For an Apache configuration such as:
DocumentRoot "/var/www/example/public"
the URL /account-check/index.html would normally map under /var/www/example/public/account-check/index.html, unless another mapping rule overrides it.
For an Nginx location using:
root /var/www/example/public;
Nginx constructs the file path using that root and the request URI.
-
Check whether the path belongs to WordPress. A normal WordPress installation will contain files such as
wp-config.php,wp-admin,wp-includesandwp-contentaround its application root. -
If the suspected directory sits beside those files, do not assume WordPress owns it. Confirm who created the directory and whether another application uses it.
If you have no server-configuration access, ask the host which filesystem path serves the exact reported URL.
The step worked when you can state which filesystem directory or application handles the phishing request.
How do I search for phishing files without assuming a folder name?
Search the full web-accessible scope that could serve the URL, rather than searching only wp-content.
Start with time. If the incident report gives you a useful approximate start time and GNU find is available, list files modified after that point. The -newermt test compares modification times with the supplied date (opens in a new tab).
Put the affected account's web-accessible root in PATH_TO_WEBROOT.
find /PATH_TO_WEBROOT -type f -newermt '2026-09-27 00:00:00' -print
The date above is illustrative. Replace it with a time that matches your incident.
Do not treat every recently changed file as malicious. Updates, deployments, uploads and cache generation can change timestamps legitimately.
If you know a harmless phrase visible in the phishing page, search for that phrase instead of copying form code. Put a distinctive text fragment in KNOWN_TEXT.
grep -rIlF 'KNOWN_TEXT' /PATH_TO_WEBROOT
-r searches recursively, -I skips binary files, -l prints matching filenames and -F treats the text as a fixed string.

Use the host's file manager if you do not have SSH. Start at the domain's document root, then inspect files around the incident time and directories matching the reported URL. Search the whole affected account scope if several domains share the same hosting account.
Open suspicious text files as source. Do not execute PHP files or submit forms.

The step worked when the reported URL has been tied to a specific file, directory, WordPress record or other application.
How do I check whether WordPress was changed as well?
Check WordPress separately because a standalone phishing folder can exist alongside a compromised installation.
- Verify WordPress core files.
wp core verify-checksumsruns before WordPress loads, and--include-rootalso warns about non-WordPress items found in the root.
wp core verify-checksums --include-root
The WP-CLI checksum documentation (opens in a new tab) confirms this behavior.
- Verify plugins that have WordPress.org checksums.
wp plugin verify-checksums --all --skip-plugins --skip-themes
The plugin checksum command (opens in a new tab) checks installed plugins against WordPress.org checksums. Plugins without available WordPress.org checksums need separate comparison with a trusted copy.
- List administrator accounts.
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered --format=table --skip-plugins --skip-themes
WP-CLI normally loads the WordPress environment for commands that need it. --skip-plugins --skip-themes avoids loading regular plugins and themes during these checks. Must-use plugins still load, so chapter 11, How to Find a Backdoor in WordPress: Web Shells and Hidden PHP, should be used if output remains suspicious.
Without SSH, compare core and plugin files using the host's file manager and trusted packages, then inspect Users in wp-admin. Chapter 10, How to Find and Remove Hidden Admin Users in WordPress, covers accounts that malicious code may conceal.
The step worked when unexplained core changes, plugin changes and administrator accounts have either been ruled out or added to the cleanup list.
How do I remove phishing pages safely?
Remove phishing pages only after preserving a private copy and confirming which files or records are malicious.
- Create a private evidence archive outside every web root. Put that directory in
SAFE_PATH, and put the confirmed malicious directory inPATH_TO_PHISHING_DIRECTORY.
tar -czf /SAFE_PATH/phishing-files-before-removal.tar.gz /PATH_TO_PHISHING_DIRECTORY
SAFE_PATH must be a private directory that the web server does not serve.
If the phishing page is stored as a WordPress post or page, export the database before deleting it:
wp db export /SAFE_PATH/phishing-before-cleanup.sql --skip-plugins --skip-themes
A reader without SSH can download a database export through the host's database tools or phpMyAdmin, then store it somewhere private.
- Remove confirmed standalone malicious content from the served path. Moving the directory to private quarantine preserves it while stopping the web server from serving that location.
mv -T /PATH_TO_PHISHING_DIRECTORY /SAFE_PATH/phishing-directory-quarantine
This command changes the directory's location. Run it only after the archive exists and only when the whole directory has been confirmed malicious.
If malicious files are mixed with legitimate application files, quarantine only the confirmed malicious files. Do not move the complete application.
- If the phishing URL is a confirmed malicious WordPress post or page, identify its post ID and delete only that record after the database export.
Put the malicious WordPress post ID in POST_ID.
wp post delete POST_ID --force --skip-plugins --skip-themes
--force bypasses the Trash, so this permanently removes that post record. In wp-admin, use Pages or Posts to remove the confirmed malicious entry after the database export.
- Remove the persistence mechanism and close the entry point. A phishing folder will return if an attacker still has file access, an active backdoor or a vulnerable entry point.
Use chapter 11 for backdoors, chapter 15 for vulnerable plugins and chapter 22 for credential changes. The WordPress security hardening checklist for 2026 is useful after the incident has been cleaned.
The step worked when the malicious path is no longer web-accessible and the mechanism that created it has been removed or disabled.
What should the removed phishing URL return?
A permanently removed phishing URL should normally return 404 Not Found or 410 Gone when there is no legitimate replacement.
Google's crawl-error guidance (opens in a new tab) recommends 404 or 410 when a removed page has no replacement.
Check again:
curl -I https://example.com/account-check/
A safe legitimate replacement can return another appropriate response. Do not redirect an old phishing URL to the homepage merely to avoid a 404.
Also test the exact filename, directory form, trailing-slash form and any redirect you recorded earlier. Confirm that no rewrite, fallback route or cached copy still returns the phishing content.
The step worked when every confirmed malicious URL stops serving the malicious content.
How do I clear browser or Google phishing warnings after cleanup?
Request Google's review only after the deceptive content and the access path that created it are gone.
In Google Search Console:
- Open the affected property.
- Open Security Issues.
- Review every listed issue and sample URL.
- Confirm the problem has been fixed across the site.
- Select Request a review and explain what content was removed and what access path or vulnerability was corrected.
Google's phishing documentation says to request a security review from the Security Issues report after all social-engineering content has been removed.
Chapter 25, Deceptive Site Ahead on WordPress: Remove the Google Warning, covers the warning-recovery process in detail.
How do I stop phishing pages from being uploaded again?
Stop reuploads by removing the attacker's access and correcting the original entry point.
Change credentials that may have exposed hosting, SFTP, SSH, WordPress administration or deployment access. Remove unauthorized accounts and keys. Replace compromised software with trusted copies and update vulnerable software where the investigation shows that it was the entry point.
Do not rely on blocking /account-check/. An attacker with write access can create /verify/, /login-check/ or any other path.
If the phishing files return after you remove them, do not repeat the same deletion indefinitely. Treat that as evidence of persistence and move to chapter 19.
What changes for different kinds of WordPress sites?
The investigation scope changes with the way the account is organized.
Multisite: Determine whether the URL is handled by WordPress network routing or a standalone server path before assigning it to one subsite. Use chapter 30 for network-wide cleanup if WordPress itself is compromised.
Shared hosting: Search the web-accessible scope of the affected hosting account. A phishing folder may sit beside one WordPress installation, inside another site's directory or in a shared path. Chapter 31 covers cross-contamination between sites.
Membership and course sites: Compare a suspected fake login page with the site's legitimate account, enrollment and single-sign-on flows before removing it. Confirm the expected form handler and owning application.
News sites: Check campaign, microsite and static-asset directories with the publishing team before deleting an unfamiliar standalone folder. A valid microsite can look unrelated to the main WordPress theme.
What should I investigate after removing the phishing pages?
Investigate the persistence source next if the files return or you still cannot explain how they were uploaded. Chapter 19, WordPress Malware Keeps Coming Back: Find the Reinfection Source, walks through the reinfection paths that remain after visible malware has been removed.
Frequently asked questions
Why is a phishing page on my domain but missing from WordPress Pages?
The web server can serve a standalone HTML or PHP file directly from a web-accessible directory. The URL therefore does not need a matching WordPress Page, post, plugin or theme entry.
Can hackers upload a phishing site without changing WordPress?
Yes. Someone with hosting, SFTP, SSH or other filesystem access can place files under a served directory without editing WordPress itself. Another compromised application under the same account can also be involved.
Why did my host find phishing files outside `wp-content`?
wp-content is only part of a WordPress installation. Any other directory mapped by the web server may also be publicly reachable, including folders beside WordPress or paths belonging to another application.
Should I delete the whole folder containing a phishing page?
Only when you have confirmed that the entire folder is malicious and have preserved a private copy first. If legitimate files share that directory, quarantine only the confirmed malicious files and keep the application intact.
Can one phishing URL cause a browser security warning for my domain?
A detected deceptive URL can trigger a warning on affected content, and security systems may classify a wider part of the site depending on what they find. Check Search Console's Security Issues report for Google's current classification and sample URLs.
Why does the phishing page still load after I delete a WordPress page with the same slug?
The request may be reaching a standalone file, another application, a rewrite rule or cached content instead of the WordPress Page you deleted. Map the URL through the web-server configuration and confirm the response with curl after cleanup.
Sources
- Social Engineering (Phishing and Deceptive Sites) (opens in a new tab)
- Why is my site labeled as dangerous in Google Search? (opens in a new tab)
- wp core verify-checksums (opens in a new tab)
- wp plugin verify-checksums (opens in a new tab)
- wp user list (opens in a new tab)
- wp db export (opens in a new tab)
- wp post delete (opens in a new tab)
- curl man page (opens in a new tab)
- GNU Findutils manual (opens in a new tab)
- Apache Core Features (opens in a new tab)
- Nginx HTTP core module (opens in a new tab)
- Troubleshoot Google Search Crawling Errors (opens in a new tab)
How this article was made: drafted with AI assistance from a researched brief, then checked against primary documentation before publishing.
Message
Ask me about your site
Tell me what is wrong or what you need built. I reply by email.