Ransomware Protection for Websites
Ransomware protection for a website means blocking the write access an attacker needs and keeping a tested, offline backup you can restore. Most site infections arrive through stolen admin passwords or an unpatched plugin, not exotic exploits. If encryption happens, restore from a clean copy and rotate every credential instead of paying.
For WordPress site owners and server admins who want to survive encryption without paying.
knowledge
- Read time
- 4 min
- Sections
- 7
- Updated
- 14 Nov 2026
- Written by
- WebJi® team
Last editorial update: 15 November 2026.
What does ransomware actually do to a website?
Ransomware encrypts the files and often the database a website runs on, drops a ransom note in the web root, and offers a key in exchange for payment. For a site owner that means public_html turns unreadable, the site stops loading, and the outcome is decided by one question: does a clean copy from before the encryption exist?
Protection therefore has three parts, and recovery is the one that decides the outcome — most sites that survive without paying do so because a clean copy existed and someone had already rehearsed putting it back.
- Prevention: remove the write access an attacker needs — strong logins, patched software, no unused FTP accounts.
- Detection: file-integrity alerts, a sudden new admin user, plugin files changing without an update.
- Recovery: an offline backup taken before the encryption, with a restore you have tested.
How does ransomware get into a website or its server?
Almost every website infection starts with a valid login or old code, not a novel exploit: the attacker signs in as an administrator and writes files exactly the way you would during a theme update. Four doors account for most cases.
- Reused or guessed admin passwords — login pages accept them from anywhere unless you limit attempts or add two-factor.
- An abandoned plugin or theme — old code carrying a known file-upload or permission flaw.
- Secrets in the wrong place —
.envfiles,wp-config.phpbackups or database dumps left in a public folder. - Stale FTP or SSH accounts — a former developer's key keeps working until somebody deletes it.
On a self-managed server the same logic applies one level down: internet-exposed remote-administration services, such as RDP on a Windows server or SSH with password login allowed, are the classic route in, usually through guessed, reused or stolen credentials rather than a clever break-in. Closing RDP and SSH to the internet, or wrapping them in a VPN, removes that door.
One distinction that saves confusion: exploit kits delivered through poisoned ads and booby-trapped downloads infect the browsers and desktops of the people who visit bad pages — endpoint ransomware. Your website's server is not infected by a visitor's browser; it is infected through its own logins and unpatched code. Defending a website and defending office desktops are two separate jobs.
Which controls block encryption before it starts?
Each control below closes one of the doors above; none works alone and none is a guarantee, so run them together.
| Control | What it blocks | How to check it is on |
|---|---|---|
| Two-factor on every admin login | Password-only entry | Log out and confirm a code is requested |
| Automatic core, theme and plugin updates | Known flaws in old code | Plugins screen shows current versions |
| Least-privilege user roles | Editors who can install files | Each user's role is the minimum needed |
| Dashboard file editor disabled | Editing PHP from wp-admin | Appearance, Theme File Editor is absent |
| Login attempt limits and a WAF | Password guessing at scale | The security plugin logs blocked attempts |
| SFTP only, no plain FTP | Credentials sent in clear text | No plain-FTP users remain on the account |
Take a fresh backup before changing any of this — a mis-set permission can take a site down as effectively as an attacker. The practical hardening checklist lives in keeping WordPress secure, and WebJi® website security services will do the hardening for you if you would rather not.
Why backups are the real defence
A tested, offline backup is the one control that survives every attack path, which is why the US Cybersecurity and Infrastructure Security Agency tells organisations to maintain offline, encrypted backups and test them regularly. Ransomware that reaches your hosting account can also reach a backup stored on the same account, so the surviving copy has to sit outside it.
The test is simple: restore the last backup to a staging directory, load the homepage, log in to admin, and check that an order or a form submission still works. Do it once a quarter and write down how long it took — that number is your real recovery time. Retention matters as much as frequency: if a compromise sat unnoticed for three weeks, a seven-day retention window holds only encrypted copies, so keep at least 30 days and confirm the file backup and the database dump come from the same moment. The 3-2-1 backup rule explained covers the copy strategy, and WordPress backup plugins compared helps you pick the tool that takes the copies.
On the hosting side, WebJi® WordPress plans at ₹400 and ₹500 a month include a daily backup (read from WebJi® billing on 15 November 2026), and server backup solutions keep scheduled copies away from the live account for VPS and cloud customers. A daily copy is a floor, not a strategy — verify it can be restored, not just that it exists.
If your site is encrypted: what to do in the first hour
Work in this order, and change nothing before the account is snapshotted — speed matters less than preserving the evidence that shows how the attacker got in.
- Put the site in maintenance mode and ask the host to snapshot the account before anything else touches it.
- Do not delete the encrypted files yet; copy the ransom note and the newest access-log lines to your own machine.
- Find the entry point in the access log: a burst of POSTs to
wp-login.php, an unfamiliar FTP session, or a plugin file requested with odd parameters. - Restore the last clean backup to a staging copy first, and check that copy for the same entry point before pointing the domain at it.
- Rotate every credential: panel, database, WordPress admins, FTP and SSH keys, and API keys stored on the site.
- Update everything, remove unused plugins and users, then watch the logs for 48 hours before calling it finished.
If the same file changes again after the restore, the entry point is still open — go back to step three instead of restoring a second time. For a WordPress site that needs a full clean-up, WordPress security services handles malware removal and hardening; if your site is encrypted right now, email support@webji.services with the domain and the time you first saw the note. Email support is 24/7 in Hindi and English, with a published average first reply under 60 minutes.
Should you pay the ransom?
No — payment buys a promise from someone who has already broken into your site, and the practical alternative is the restore you prepared. There is no guarantee the key works, payment marks you as a payer who may be attacked again, and the money funds the next attack on someone else. Some insurers and jurisdictions also treat ransom payment as a regulated transaction.
If no clean copy exists, rebuild from the last known-good export and treat the gap as lost content — slower, but still cheaper and safer than a second encryption after a first payment. The decision gets easy only when the offline backup exists; that is the real reason this page keeps returning to it.
Frequently asked questions
Can a firewall stop website ransomware?
A web application firewall blocks known attack patterns and slows password guessing, but it cannot stop an attacker who logs in with a valid admin password. Pair the WAF with two-factor authentication and prompt updates, and keep the offline backup as the control of last resort.
Is ransomware a risk on shared hosting, or only on my own server?
Both, in different ways. On shared hosting the account itself is the target — a leaked cPanel or WordPress password lets someone encrypt files inside it. On your own VPS or cloud server, exposed RDP or SSH adds a second door. Both cases are covered by the same two answers: restrict logins and keep an offline backup.
How often should I test a backup restore?
Once a quarter, and after any major change to the site. Restore to a staging copy, load the homepage, log in, and submit a test order or form. Record how long it took so you know your real recovery time before an incident measures it for you.
Does WebJi® hosting include ransomware recovery?
WebJi® provides scheduled backups — daily on WordPress plans, and off-account copies through server backup solutions — plus hardening help and malware cleanup. It is not a decryption service: recovery depends on a clean backup existing, which is why the restore test matters before an incident, not after.
How do I know the attacker is gone after a restore?
When the same files stop changing. Watch the access log and file timestamps for 48 hours after restoring, and confirm there are no new admin users, scheduled tasks or unknown plugins. If anything reappears, the entry point is still open and the log analysis has to be redone.
Last editorial update: 15 November 2026. WordPress plan prices read from WebJi® billing on 15 November 2026; checkout confirms current charges.
Ready to get started with WebJi®?
Join 12,000+ businesses across India and overseas. INR pricing, 18% GST shown before payment and 24/7 email support in Hindi and English — average first reply under 60 minutes.