A Beginner's Guide to Hardening WordPress Security
文章推薦指數: 80 %
13 Ways to Harden a WordPress Site · 1. Install an SSL certificate · 2. Use strong passwords · 3. Use Two Factor Authentication (2FA) · 4. Limit ...
Wordpress
ABeginner’sGuidetoHardeningWordPressSecurity
By
PasqualeMellone
NoComments
24Jun
TherearemultiplereasonswhywebsiteownersandmanagersloveWordPress.Butthereisonebigreasonwhyevenhackersloveit:itspopularity. HackersareconstantlylookingforwaystobreakintoWordPresswebsites.Thankfully,therearesomestepsyoucantaketoprotectyourwebsitefromsuchthreats.WordPresshardeningisaprovenwaytomakeitharderforhackerstoattackyourwebsite.
So,whatisWordPresshardening?HowcanyouhardenWordPresssites?Howhardisittodo?
ThiscompleteWordPresshardeningguidewillhelpyouunderstandallthisandmore.
Contents
hide
13WaystoHardenaWordPressSite
1.InstallanSSLcertificate
2.Usestrongpasswords
3.UseTwoFactorAuthentication(2FA)
4.Limitloginattempts
5.SetupaWPfirewall
6.UseaWPsecurityplugin
7.BlockPHPexecutioninuntrustedfolders
8.Disablethefileeditor
9.Changesecuritykeys
10.SecureWP-Admin
11.Securewp-config.phpfile
12.Assignuserrolesandpermissionscarefully
13.Changethedefaultusernamefrom‘admin’
Overtoyou
Don’tmissourweeklyposts!
13WaystoHardenaWordPressSite
Beforewedivein,whatisWordPresshardening?Simplyput,itisasetofstepsthatfortifyaWordPresswebsitetoprotectitfrommalwareandattacks.
HowtohardenyourWordPresssite
Inthisarticleare13provenwaystohardenyourWordPresswebsite.
Soundsoverwhelming?
Let’sstartwithsixeasywaysofsitehardeningthatdonotneeddeeptechnicalorWordPressknow-how.
1.InstallanSSLcertificate
ShortforSecureSocketLayer,anSSLcertificatemovesitfromthepreviousHTTPnotationtothemoresecureHTTPSnotation(withthesecurepadlock).Thisensuresthatallthedatabetweenyouruser’sbrowserandyourwebsiteisencrypted,andtherefore,safe.EvenGooglerecommendsthateverywebsitehasanSSLcertificateforthesecurityofitsusers.
HowcanyoumoveyoursitetoHTTPS?
AllyouneedtodoisinstallanSSLpluginlikeLet’sEncryptonyourWordPresssite,andyouareallset.
2.Usestrongpasswords
ThisisprobablytheeasiestandmosteffectivewayofhardeningWordPresswebsites.EnsurethatallyourusersincludingyourWordPressadministratorsconfigureloginpasswordsthatareatleasteightcharacterslongandhaveacombinationofupper-&lower-casealphabets,numbers,andspecialcharacters.
YoucanalsoinstallapasswordmanagementtoollikeLastPasstoautomaticallygenerateandstorestrongpasswords.Additionally,makesuretoregularlychangealluserpasswords,sayeverythreemonths.
Seealso HowtoSupportUkrainewithYourWordpressWebsite3.UseTwoFactorAuthentication(2FA)
WPhardeningisnotcompletewithoutprotectingyourloginpagefrombruteforceattacks.Two-FactorAuthenticationisaprovenmethodforsecuringanyWordPressloginpage.With2FA,userssigningintotheiraccounthavetogothrougha2-stepverificationprocessof:
First,enteringthecorrectuserusernameandpassword
Enteringauniqueverificationcodethatissenttotheirmobiledevice.
Howdoyouenable2FA?ForWordPresssites,installa2FApluginlikeGoogleAuthenticator.
4.Limitloginattempts
Bydefault,WordPressallowsanunlimitednumberofloginattempts,whichiswhatbruteforceattackstakeadvantageof.YoucanhardenWordPressloginpagesbylimitingthenumberoffailedattempts.
Toenablethis,youcaneitherusetheLimitLoginAttemptsReloadedWordPresspluginorusesecuritypluginslikeMalCarethathavein-builtloginpageprotection.
YoucanevenlimitattacksbyhidingyourWordPressloginpage.
5.SetupaWPfirewall
WordPressfirewallsblockanyhackerbeforetheycangainforcedentryintoyourwebsite.AfirewallcantrackmaliciousIPaddressesorthoseusedbyhackersacrosstheglobeandblockanyIPrequestsentfromtheseaddresses.
WanttoknowhowtohardenWordPresssiteswithfirewalls?PopularWordPresssecurityplugins,likeMalCare,haveanin-builtwebapplicationfirewallthatcaneasilybeenabledforyoursite.
6.UseaWPsecurityplugin
SecuritypluginsarethebestwaytodetectandfixcurrentissuesaswellaspreventfutureattacksonyourWordPresssite.SincetheyaredevelopedexclusivelyforWordPress,theydetectsecurityissuesthatareadvanced,lesser-known,oreasyforyoutomiss.
WordPresshardeningpluginslikeMalCareorSucuricombinemultiplesecuritypracticesso youcanhardenyourwebsiteinjustafewclicks.Forinstance,MalCare,inadditiontomalwarescanningandautomatedmalwareremoval,alsohasanin-built2FAfeature,firewallprotection,andaneasywaytoupdateyourWordPressplugins,themes,andcoreacrossmultiplewebsites.
Installingasecuritypluginisthebestwaytotakechargeofyourwebsitesecuritywithouthavingtodependontechnicalexperts.
ThiscompletesourlistofthesixeasywaystorunWordPresshardening.
Now,let’stakealookatsevenslightlyadvancedwaystohardenWordPresssecuritythatwillbolsteryourwebsitesecurity.
7.BlockPHPexecutioninuntrustedfolders
Whilethisisslightlytechnical,itisfairlysimple.Hackers,aftergainingcontrolofyourwebsite,ofteninserttheirmaliciousPHPfunctionstodamageyourbackendfiles.WhatyouneedtodoisblocktheexecutionofanyPHPfilesfromanyunknownfoldersofyourWordPressinstallation.
Seealso HowtoRecoverWordpressAdditionalCSSin2022Howcanyoudothis?Locatethe.htaccessfileinyourWordPressinstallationandpastethefollowingcodewiththehelpofatexteditortool:
延伸文章資訊
- 1An Overview of Basic WordPress Hardening - Sucuri Blog
Our website security analyst gives a brief overview of basic WordPress hardening tips and tricks ...
- 2The Ultimate WordPress Security Guide - Step by Step (2022)
Another way to harden your WordPress security is by disabling PHP file execution in directories w...
- 315 Ways To Harden The Security Of Your WordPress Site
15 WordPress Security Tips · Keep WordPress core, themes, and plugins up to date · Only install t...
- 4WordPress Hardening: A Complete Guide - Astra Security
Steps to WordPress hardening ; Sign into WordPress account and go to WordPress general settings; ...
- 5Hardening WordPress – WordPress.org Forums
Like many modern software packages, WordPress is updated regularly to address new security issues...