How to Secure a WordPress Website Before Applying for Google AdSense

WordPress security checklist for preparing a website for Google AdSense, including updates, HTTPS, backups, malware checks, user access, and Search Console review.
WordPress security review

Secure the website before applying—but do not confuse security with guaranteed AdSense approval

A compromised WordPress website can expose visitors to malicious redirects, unwanted downloads, phishing pages, injected spam, unsafe scripts, or stolen information. These problems can also create browser warnings, Search Console security notices, unavailable pages, and serious obstacles to monetization.

Security is therefore an essential part of site readiness. However, passing a security review does not guarantee AdSense approval. The website must also provide original and useful content, clear navigation, a functional layout, transparent ownership, and a good visitor experience.

What security can accomplish

Remove preventable technical risks

  • Reduce unauthorized access
  • Detect suspicious changes
  • Protect visitors and website data
  • Improve recovery after a failure
  • Prevent malware from remaining unnoticed
What AdSense still evaluates

Overall website readiness

  • Original and relevant content
  • Clear and working navigation
  • Useful pages and a coherent niche
  • Good usability on mobile and desktop
  • Compliance with publisher policies
Do not apply while a security warning remains unresolved

If Search Console, the browser, the hosting provider, or a security tool reports hacked content, malware, phishing, suspicious redirects, or harmful downloads, investigate and correct the problem before requesting AdSense review.

Why website security matters for Google publishers

Google Publisher Policies do not allow Google-served advertisements on screens containing malware or software that may harm or gain unauthorized access to a device, computer, or network.

A compromise can affect more than the visible homepage. Attackers may create hidden URLs, insert links into old articles, redirect only mobile visitors, load scripts only through search traffic, change advertising code, create administrator accounts, or add files that remain invisible during an ordinary dashboard review.

Visitor risk

Malicious redirects

Visitors may be sent to spam, phishing, fake-update, gambling, adult, or fraudulent pages.

Search risk

Injected URLs

Unknown pages and keywords may appear in Google results even when they are not linked from the homepage.

Account risk

Stolen access

Attackers may reach WordPress, hosting, email, domain, backup, or Google accounts.

Recovery risk

Destroyed backups

Copies stored under the same compromised credentials may be altered or deleted with the live website.

Start with a complete inventory

You cannot protect what you do not know exists. Before changing settings, list the services, installations, users, and integrations connected to the website.

Area What to identify Why it matters
WordPress Core version, plugins, themes, users, scheduled tasks, forms, and custom code. Unsupported software and unknown users are common entry points or persistence methods.
Hosting Control panel, server type, PHP version, databases, file users, backups, logs, and support scope. Application security depends partly on the hosting environment and its maintenance.
Domain and DNS Registrar account, nameservers, DNS records, CDN, proxy, and recovery information. Unauthorized DNS changes can redirect the complete website or email service.
Email Primary recovery inboxes, forwarding rules, administrators, and active sessions. Email access can be used to reset passwords for most other services.
Third-party services Analytics, consent tools, advertising scripts, forms, social embeds, APIs, and automation. External scripts and stolen integration keys can affect visitors without changing WordPress core.

Complete these security checks before applying

COPY

Create a complete, independent, and restorable backup

Back up both the WordPress files and database. The files contain themes, plugins, uploads, configuration, and custom code, while the database stores articles, pages, comments, users, menus, settings, and plugin data.

Keep at least one protected copy outside the production hosting account. A local ZIP file stored inside the public website directory is neither independent nor safely protected.

Verify before continuing:
  • The files and database were created at approximately the same time.
  • The archive can be downloaded and opened.
  • The backup is not publicly accessible.
  • You understand how restoration would be performed.
  • A recent restoration has been tested in a safe environment when possible.
UPDATE

Update WordPress, plugins, themes, PHP, and server software

WordPress security guidance identifies current core, plugin, and theme versions as a central part of protecting a website. Updates may contain fixes for publicly known vulnerabilities.

Important websites should create a current backup and test essential functions after updates. Updating should be planned, but indefinitely ignoring available security fixes creates unnecessary risk.

Review:
  • WordPress core updates
  • Active and inactive plugins
  • Active and inactive themes
  • PHP and database compatibility
  • Hosting-panel and server updates when you manage them
REMOVE

Remove software and installations that are no longer needed

Deactivating an unused plugin does not remove its files from the server. Old themes, abandoned plugins, forgotten staging sites, imported demos, test subdomains, and unused WordPress installations can remain available to attackers.

Retain only software with a clear purpose and an active maintenance source. Never install nulled, cracked, modified, or unofficial copies of premium products.

Remove or replace:
  • Plugins and themes with no current purpose
  • Products that no longer receive maintenance
  • Duplicate plugins performing the same function
  • Old migration archives and installation files
  • Forgotten test sites and temporary subdomains
USERS

Review every administrator and privileged account

Each person should use an individual account with only the permissions required for their work. Writers, editors, developers, and administrators do not need identical privileges.

Remove unknown users, former contractors, unused author profiles, and temporary accounts. Review hosting users, SFTP accounts, SSH keys, database users, API tokens, and active sessions in addition to the WordPress user list.

Confirm:
  • Every administrator is recognized.
  • Display names do not expose login usernames unnecessarily.
  • Former team members no longer have access.
  • Temporary privileges have been removed.
  • Recovery email addresses remain under your control.
LOGIN

Protect the complete account recovery chain

Securing only the WordPress login is not enough. The primary email account, domain registrar, hosting panel, CDN, backup storage, Google account, and password-reset channels may provide even greater control.

Use unique passwords stored in a reputable password manager and enable multifactor authentication wherever it is supported. Avoid sharing one owner account among several people.

Priority accounts:
  • Primary email and recovery inbox
  • Domain registrar
  • Hosting control panel
  • WordPress administrators
  • CDN, firewall, and DNS services
  • Backup storage
  • Google account used for Search Console and AdSense
HTTPS

Confirm that HTTPS works across the entire website

A certificate should be valid for every hostname visitors use. HTTP pages should redirect cleanly to the preferred HTTPS version, and images, scripts, fonts, stylesheets, forms, embeds, and API requests should also load securely.

Test:
  • Homepage and old articles
  • Contact forms and login pages
  • www and non-www versions
  • Mobile and desktop browsers
  • Certificate renewal status
  • Mixed-content warnings in the browser console
FILES

Review file ownership, permissions, and public archives

Files and directories should receive only the access required by the hosting environment. Broad public write permissions should not be used as a universal fix for failed uploads or updates.

Search public directories for database exports, complete backups, old configuration files, diagnostic logs, temporary archives, and migration packages.

Investigate files such as:
  • backup.zip or site-old.tar.gz
  • database.sql or exported database archives
  • Old copies of wp-config.php
  • Unfamiliar PHP files in uploads directories
  • Unexpected files with recent modification dates
  • Public logs containing paths or private information
FORMS

Secure forms, comments, uploads, and user-generated content

Contact forms, comments, user registration, profile fields, guest posts, reviews, and uploads create additional entry points and moderation responsibilities.

Use appropriate spam protection, input validation, upload restrictions, moderation, rate controls, and minimum user permissions. Do not allow executable file types through public upload forms.

Review:
  • Whether user registration is actually necessary
  • Comment and submission moderation
  • Allowed upload extensions and file sizes
  • Form notification and storage settings
  • Spam submissions and unusual account creation
CODE

Audit external scripts, embeds, advertising code, and tag managers

A clean WordPress installation can still expose visitors to problems through compromised third-party scripts, unsafe popups, push-notification code, redirect systems, injected tags, fake download buttons, or unknown advertising networks.

Remove scripts you cannot identify and integrations that no longer provide a clear benefit. Review theme header and footer areas, widgets, code-injection plugins, tag-manager containers, consent tools, and custom HTML blocks.

Do not allow:
  • Automatic file downloads
  • Fake browser or software-update notices
  • Back-button hijacking
  • Unexpected redirects
  • Popups that prevent access to the content
  • Unknown scripts copied from unverified sources

Protect the accounts outside WordPress

Scan the website from more than one perspective

No single plugin or online scanner can prove that a website is completely clean. Combine external checks, internal file review, account inspection, logs, and Search Console information.

External checks

  • Open the website in an incognito browser.
  • Test mobile and desktop connections.
  • Follow pages from Google search results.
  • Inspect redirects and browser warnings.
  • Use Search Console’s Security Issues report.
  • Search Google for unexpected indexed pages.
  • Test old articles, categories, author pages, and forms.

Internal checks

  • Review administrator and hosting users.
  • Compare core files with official WordPress releases.
  • Inspect recently changed PHP and JavaScript files.
  • Review scheduled tasks and unfamiliar database entries.
  • Check server, access, error, and security logs.
  • Inspect theme headers, footers, widgets, and injected-code areas.
  • Review outbound email and unusual traffic activity.

Optional WP-CLI checks for experienced administrators

WP-CLI can help verify the WordPress installation and list important information. Run commands only when you understand the environment and have a current backup.

wp core verify-checksums wp plugin list wp theme list wp user list –role=administrator wp cron event list

Core checksum verification compares WordPress core files with official release checksums. A successful result does not prove that plugins, themes, uploads, the database, server configuration, or external scripts are clean.

Check Search Console before AdSense submission

Search Console’s Security Issues report can show indications of hacked content, harmful downloads, malware, social engineering, or other behavior that may harm visitors.

Also review indexing for unknown URLs, manual actions, important page availability, sitemap status, mobile usability, HTTPS behavior, and messages sent to the verified property owners.

“No issues detected” is not a complete security guarantee

Search Console reports problems detected by Google. It does not replace software updates, account reviews, backups, logs, file inspection, hosting security, and continuous monitoring.

Review the visitor experience separately from security

A secure website can still be unready for AdSense. The site should be understandable, useful, easy to navigate, and functional without deceptive buttons, broken pages, unfinished sections, or unnecessary barriers.

Safe

  • No security or certificate warnings
  • No unexpected redirects
  • No suspicious downloads
  • No unknown scripts or popups
  • Protected forms and accounts

Clear

  • Readable menu and categories
  • Working About and Contact pages
  • Transparent author information
  • Visible privacy and policy pages
  • Descriptive links and buttons

Stable

  • Pages load reliably
  • Mobile layout works correctly
  • Forms and links function
  • No major layout movement
  • No repeated server errors

Final security checklist before applying

Confirm every applicable item

  • WordPress core is current
  • Plugins and themes are current
  • Unused software has been removed
  • No nulled or cracked products are installed
  • Every administrator is recognized
  • Former users no longer have access
  • Critical accounts use unique passwords
  • Multifactor authentication is enabled where available
  • The recovery email account is protected
  • The domain registrar account is protected
  • HTTPS works on all important pages
  • There are no mixed-content warnings
  • Automatic certificate renewal works
  • Files and database are backed up
  • An off-site recovery copy exists
  • Backup restoration is understood
  • Public backup archives have been removed
  • File permissions are appropriate
  • Forms and uploads are protected
  • Comments and submissions are moderated
  • External scripts are recognized
  • No unexpected redirects occur
  • No automatic downloads occur
  • Search Console shows no unresolved security issue
  • Google results show no unknown injected pages
  • Homepage and articles work on mobile
  • Navigation, contact, and policy pages work
  • Server and application errors have been reviewed

Red flags that should delay your application

Unknown WordPress administrators, hosting users, SSH keys, or API tokens.

Search Console reports hacked content, malware, phishing, or harmful downloads.

The browser displays a certificate, deceptive-site, or dangerous-download warning.

Visitors are redirected differently on mobile, through search traffic, or when leaving the page.

Cracked themes, nulled plugins, pirated scripts, or software from unknown sources are installed.

Unexpected casino, pharmaceutical, adult, loan, gambling, or foreign-language URLs appear in search.

Complete backups, database exports, or configuration copies are accessible from public URLs.

The website repeatedly returns server errors, broken pages, or unavailable forms.

Unknown JavaScript, iframe, popup, push-notification, or advertising code remains unexplained.

You do not have independent control of the domain, hosting, email, or backup accounts.

What to do if the website appears compromised

Pause the AdSense application and investigate first

Avoid deleting random files or immediately overwriting the site before documenting the problem. A rushed cleanup can remove evidence while leaving the original entry point active.

A

Document the symptoms. Save warnings, affected URLs, unfamiliar files, accounts, redirects, modification times, and available logs.

B

Contact the hosting provider. Ask whether the server, account, email, DNS, or neighboring services show suspicious activity.

C

Protect access from a trusted device. Change critical passwords, enable MFA, revoke sessions, remove unknown users, and replace exposed keys.

D

Identify the entry point. Investigate vulnerable software, stolen credentials, unsafe uploads, exposed archives, altered DNS, and abandoned installations.

E

Recover from a known-clean source. Reinstall trusted software or restore a verified backup, then update and correct the original weakness.

F

Verify the complete website. Check files, database, users, forms, search results, DNS, email, redirects, external scripts, backups, and mobile behavior.

G

Request review only after cleanup. Use the appropriate Search Console review process when a detected security issue has been fully corrected.

Changing one WordPress password is rarely a complete incident response

A compromise may involve email, hosting, database, domain, CDN, backup, API, browser session, SSH, or Google-account access. Review the complete ownership and recovery chain.

Maintain security after approval

Security work does not end when advertisements begin serving. A later compromise may affect visitors, search visibility, advertising eligibility, business data, and access to the website.

Continuously

Monitor uptime, certificate renewal, important security alerts, failed backup jobs, and unusual account activity.

Weekly

Review software updates, administrator users, forms, unusual traffic, website errors, and important page functions.

Monthly

Remove unused software, inspect Search Console, review external scripts, check backups, and search for unfamiliar indexed URLs.

Quarterly

Test restoration, review every person and service with access, update documentation, and confirm the hosting provider’s security and backup scope.

After staff changes

Remove users, revoke keys and tokens, close active sessions, transfer service ownership, and rotate shared credentials.

The practical conclusion

A secure WordPress website gives an AdSense application a cleaner technical foundation, but it is not an approval shortcut. Security prevents avoidable risks; content quality, navigation, transparency, usability, and policy compliance determine whether the complete website is ready.

Before applying, complete four essential tasks: update and simplify the WordPress installation, protect every critical account, create an independent restorable backup, and confirm through Search Console and real browser testing that no harmful behavior remains.

Apply only when the website is secure, stable, useful, easy to navigate, and fully under your control.

Frequently asked questions

Does a security plugin guarantee AdSense approval?

No. A security plugin can provide useful monitoring or protection, but AdSense approval also depends on original content, navigation, user experience, policy compliance, and the overall readiness of the website.

Can Google reject or restrict a site containing malware?

Google Publisher Policies do not allow Google-served advertisements on screens containing malware or software that may harm or gain unauthorized access to a device, computer, or network.

Should inactive plugins and themes be removed?

Software with no current purpose should generally be removed after confirming that it is not required. Deactivated products still leave files on the server and may later be forgotten.

Is HTTPS enough to make WordPress secure?

No. HTTPS protects information while it travels between the browser and server. It does not update plugins, remove malware, protect weak passwords, moderate uploads, or maintain the hosting environment.

Does “No issues detected” in Search Console prove the site is clean?

No. It means Google is not currently reporting a detected security issue for the property. Continue reviewing software, accounts, backups, logs, files, external scripts, and hosting security.

Should I apply while waiting for a malware review?

It is safer to wait until the website has been cleaned, the entry point has been corrected, important accounts have been secured, and the relevant security warning has been resolved.

Do I need a paid security plugin?

Not necessarily. The correct tools depend on the hosting environment, website risk, technical skill, and support available. No plugin replaces updates, secure accounts, off-site backups, appropriate permissions, and monitoring.

How can I find unknown pages indexed on my domain?

Review the Search Console indexing reports and search Google using the site operator, such as site:yourdomain.com. Investigate unfamiliar URLs, topics, subdomains, languages, or titles.

Should I keep the AdSense code installed during a security incident?

The priority is to contain and clean the compromised website. Avoid serving or attempting to monetize harmful pages. Follow any instructions shown in the relevant Google policy or account interface and request review only after correction.

What is the most important security step for a beginner?

There is no single complete step. A practical starting set is to update WordPress and its extensions, remove unused software, protect critical accounts with unique credentials and MFA, and create an independent restorable backup.

Editorial note: This guide was prepared by the HostingMug Editorial Team using official Google and WordPress documentation. It does not claim that a specific security plugin, hosting provider, firewall, malware scanner, or backup service was directly tested for this article.

Security requirements vary according to the hosting environment, website functions, user data, legal obligations, and business impact. Sites processing payments, private customer records, or other sensitive information may require professional security review.