FRIENDS
OF SEARCH

HARDENING WORDPRESS
VARIOUS TWEAKS FOR BETTER WP SECURITY
WHAT REALLY MATTERS: TOP 3!
IF YOU HAVE 5 MINS TO SPARE, JUST DO THESE…
#1 Update your blogs regularly!

http://wordpress.org/extend/plugins/wp-updates-notifier/
Change update behavior…
Be sure to REALLY know
what you’re doing there…!
# Disables ALL core updates:
define('WP_AUTO_UPDATE_CORE', false);
# Enables all core updates, including minor and majors:
define('WP_AUTO_UPDATE_CORE', true);
# Default: Enables core updates for minor releases:
define('WP_AUTO_UPDATE_CORE', 'minor');

Want something more fine-grained?
Check AUTO_UPDATE_$TYPE filter (e.g. auto_update_plugin,
auto_update_theme, etc.) which is used for specific updates.
http://github.com/georgestephanis/update-control/
WWW.INFINITEWP.COM
WWW.MANAGEWP.COM
#2 Get rid of stuff you don’t use!

Remove all inactive
plug-ins as well as themes!
#3 Backup Database & Files, often!

http://wordpress.org/extend/plugins/backwpup/
SECURITY STARTS AT SETUP
MAKE THINGS RIGHT FROM THE BEGINNING…!
#4 Setup WordPress properly
Use unique keys and salts to add
random elements for encryption!

Use a cryptic prefix to prevent
automated scripts and SQL injections.
$table_prefix = ‘wp_VzQCxSJv7uL_ ‘;

https://api.wordpress.org/secret-key/1.1/salt/
#5 Protect your wp-config.php
<files wp-config.php>
order deny,allow
deny from all
</files>

This needs to go into your WP roots’
.htaccess file to prevent external access

Even better… move wpconfig.php outside of „www“. Also
do chmod 400/440
#6 Remove the default „admin“
Setup new user as admin; logout.
Login w/ new admin; delete old one.

Make sure to use a STRONG
password, pleeaaasssseeee!

http://www.random.org/passwords/
#7 Protect your Login (and wp-admin)
Recommended: Try the “Lockdown WP
Admin” plug-in to protect PHP files in wpadmin as well as the login itself.

Don’t just put an .htaccess
for basic passwd. protection.
It’s a lot of pain…

http://wordpress.org/extend/plugins/lockdown-wp-admin/
#8 Lock-out multiple failed logins
Limit Login Attempts

http://wordpress.org/extend/plugins/limit-login-attempts/
#9 Even better: Two-factor Verification

Info: http://gdig.de/1t - Download: http://gdig.de/1u
#9 Even better: Two-factor Verification
Google Authenticator

http://wordpress.org/plugins/google-authenticator/
#9 Even better: Two-factor Verification

Provide your login credentials
and get auth-code from your
mobile phones‘ G-Auth-App.
WWW.DUOSECURITY.COM
WWW.DUOSECURITY.COM
WWW.GETCLEF.COM
#10 Block malicious URL requests

domain.com/?q=%2e%2e or
domain.com/path/base64_ will
return HTTP 403 (Forbidden).
http://wordpress.org/plugins/block-bad-queries/
ADDITIONAL TWEAKS
THINGS YOU COULD DO IN YOUR CONFIG AS WELL…
#11 SSL Logins & Administration
define('FORCE_SSL_LOGIN', true);

Set FORCE_SSL_LOGIN to “true” to
force all logins to happen over SSL.
(still allows non-SSL admin sessions)
define('FORCE_SSL_ADMIN', true);

Use FORCE_SSL_ADMIN to force all
logins and all admin sessions to
happen over SSL (can be slow…)
#12 Move the “wp-content” folder
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'].'/blog/my-wp-content');

WP_CONTENT_DIR points to “new”
the full local path (no trailing slash)

define('WP_CONTENT_URL', 'http://domain.com/blog/my-wp-content');

WP_CONTENT_URL points to “new”
full URI (no trailing slash either)
#13 Disable File Editing
define('DISALLOW_FILE_EDIT', true);

Set DISALLOW_FILE_EDIT to “true” to
disable editing files from dashboard.

By default, admins are allowed to edit PHP files. Setting
the above is equivalent to removing the 'edit_themes',
'edit_plugins' and 'edit_files' capabilities of all users.
#14 Fix File & Folder Permissions
WP-Security Scan

Very important: chmod your
wp-config.php to be read-only!
http://wordpress.org/extend/plugins/wp-security-scan/
WORDPRESS.ORG/PLUGINS/WORDFENCE/
WORDPRESS.ORG/PLUGINS/BETTER-WP-SECURITY/
@basgr
SEO Trainings, Seminars & Strategy Consulting

Berlin-based Full-Service Performance Marketing Agency

WordPress Security, Consulting & Development

www.bg.vu/fos14

More Related Content

PPTX
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
PPTX
Hardening WordPress - SAScon Manchester 2013 (WordPress Security)
PPTX
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
PDF
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
PPTX
On-Page SEO EXTREME - SEOZone Istanbul 2013
PPTX
Seozone - 5 tips
PPTX
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
PPTX
Structured Data & Schema.org - SMX Milan 2014
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Hardening WordPress - SAScon Manchester 2013 (WordPress Security)
40 WordPress Tips: Security, Engagement, SEO & Performance - SMX Sydney 2013
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
On-Page SEO EXTREME - SEOZone Istanbul 2013
Seozone - 5 tips
What's in my SEO Toolbox: Linkbuilding Edition - SMX Milan 2014
Structured Data & Schema.org - SMX Milan 2014

What's hot (20)

PPTX
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
PDF
The Need for Speed (5 Performance Optimization Tipps) - brightonSEO 2014
PDF
International Site Speed Tweaks - ISS 2017 Barcelona
PDF
SEO Social Blog: Wordpress SEO with Joost de Valk
PDF
Your WordPress Website Is/Not Hacked
PDF
Your WordPress Site is and is not Hacked - You don't know until you check
PDF
Plugins at WordCamp Phoenix
PDF
Really Awesome WordPress Plugins You Should Know About
PPT
CONSEJOS PARA OPTIMIZAR EL BLOG
PPT
SEO Tips For Bloggers
PPT
PPT
Whitehat Seo Tips For Bloggers
PPT
Whitehat seo tips for bloggers
PDF
Make your website load really really fast - seo campus 2017
PDF
How I learned to stop worrying and love the .htaccess file
ODP
Don't sh** in the Pool
PPTX
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox
PPT
Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nl
PDF
Joost's Wordpress Affiliate Session @ LAC 2010
 
PDF
Prebrowsing - Velocity NY 2013
10 Tips to make your Website lightning-fast - SMX Stockholm 2012
The Need for Speed (5 Performance Optimization Tipps) - brightonSEO 2014
International Site Speed Tweaks - ISS 2017 Barcelona
SEO Social Blog: Wordpress SEO with Joost de Valk
Your WordPress Website Is/Not Hacked
Your WordPress Site is and is not Hacked - You don't know until you check
Plugins at WordCamp Phoenix
Really Awesome WordPress Plugins You Should Know About
CONSEJOS PARA OPTIMIZAR EL BLOG
SEO Tips For Bloggers
Whitehat Seo Tips For Bloggers
Whitehat seo tips for bloggers
Make your website load really really fast - seo campus 2017
How I learned to stop worrying and love the .htaccess file
Don't sh** in the Pool
SMX Advanced 2018 SEO for Javascript Frameworks by Patrick Stox
Joomla wireframing Template - Joomladay Netherlands 2014 #jd14nl
Joost's Wordpress Affiliate Session @ LAC 2010
 
Prebrowsing - Velocity NY 2013
Ad

Viewers also liked (20)

PDF
Ne explanation of the last tenth of the quran
PPTX
Tekijänoikeusaineistot luokittelutavan valinta
PDF
Internationalizing Ubuntu apps
PPTX
Rasmus Lassen, Byggechef i Københavns Ejendomme
PPTX
Ciencias del Deporte
PPTX
Generalsekretærfrokost 23.05.16
PDF
BIM ir SOLIDWORKS
PPTX
“Η Logo στην εκπαίδευση: Μια κοινότητα πρακτικής και μάθησης” - i2fest 2015
PDF
SOLIDWORKS Plastics LT
PDF
Agep welcome leipzig
PPTX
history of cinema powerpoint in Malayalam
PDF
KM-Report may-2015
PPTX
Motivarea si evaluarea angajaților
PPTX
Content marketing: Sjarlatan eller superhelt?
PPS
Quien sera
PPT
e ID
PDF
vmchecker @SCS
PPTX
Российский фронт битвы гигантов
DOC
British Royal House
PDF
CCR&R Part Two (Planning)
Ne explanation of the last tenth of the quran
Tekijänoikeusaineistot luokittelutavan valinta
Internationalizing Ubuntu apps
Rasmus Lassen, Byggechef i Københavns Ejendomme
Ciencias del Deporte
Generalsekretærfrokost 23.05.16
BIM ir SOLIDWORKS
“Η Logo στην εκπαίδευση: Μια κοινότητα πρακτικής και μάθησης” - i2fest 2015
SOLIDWORKS Plastics LT
Agep welcome leipzig
history of cinema powerpoint in Malayalam
KM-Report may-2015
Motivarea si evaluarea angajaților
Content marketing: Sjarlatan eller superhelt?
Quien sera
e ID
vmchecker @SCS
Российский фронт битвы гигантов
British Royal House
CCR&R Part Two (Planning)
Ad

Similar to Hardening WordPress - Friends of Search 2014 (WordPress Security) (20)

PDF
WordPress Security
KEY
Securing WordPress by Jeff Hoffman
PPTX
WordPress End-User Security
PPTX
Website security
PDF
WordPress Security - 12 WordPress Security Fundamentals
PDF
Secure wordpress
PPT
Wordpress Security Tips
PDF
WordPress Security 101 - Meetup Nairobi March 2020
PPTX
Protect Your WordPress From The Inside Out
PPT
WordPress Security - WordCamp NYC 2009
PPTX
How to Secure your WordPress Website - WordCamp UK 2014
PDF
Word press beirut 9th meetup march
PDF
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
PPT
Now That's What I Call WordPress Security 2010
PPTX
WordPress Security Fundamentals - WordCamp Biratnagar 2018
PPTX
WordPress Security Updated - NYC Meetup 2009
PPT
WordPress Security - WordCamp Boston 2010
PDF
WordPress Security is like a HHAM Sandwich
PPTX
Wordpress Security & Hardening Steps
PDF
Top Ten WordPress Security Tips for 2012
WordPress Security
Securing WordPress by Jeff Hoffman
WordPress End-User Security
Website security
WordPress Security - 12 WordPress Security Fundamentals
Secure wordpress
Wordpress Security Tips
WordPress Security 101 - Meetup Nairobi March 2020
Protect Your WordPress From The Inside Out
WordPress Security - WordCamp NYC 2009
How to Secure your WordPress Website - WordCamp UK 2014
Word press beirut 9th meetup march
Complete Wordpress Security By CHETAN SONI - Cyber Security Expert
Now That's What I Call WordPress Security 2010
WordPress Security Fundamentals - WordCamp Biratnagar 2018
WordPress Security Updated - NYC Meetup 2009
WordPress Security - WordCamp Boston 2010
WordPress Security is like a HHAM Sandwich
Wordpress Security & Hardening Steps
Top Ten WordPress Security Tips for 2012

More from Bastian Grimm (20)

PPTX
Migration Best Practices - Peak Ace on Air
PDF
SEOday Köln 2020 - Surprise, Surprise - 5 SEO secrets
PDF
Technical SEO vs. User Experience - Bastian Grimm, Peak Ace AG
PDF
Advanced data-driven technical SEO - SMX London 2019
PDF
Migration Best Practices - SMX West 2019
PDF
Migration Best Practices - Search Y 2019, Paris
PDF
Migration Best Practices - SEOkomm 2018
PDF
Data-driven Technical SEO: Logfile Auditing - SEOkomm 2018
PDF
The need for Speed: Advanced #webperf - SEOday 2018
PDF
OK Google, Whats next? - OMT Wiesbaden 2018
PDF
Super speed around the globe - SearchLeeds 2018
PDF
Migration Best Practices - SMX London 2018
PDF
Welcome to a new reality - DeepCrawl Webinar 2018
PDF
Web Performance Madness - brightonSEO 2018
PDF
Digitale Assistenzsysteme - SMX München 2018
PDF
AMP - SMX München 2018
PDF
How fast is fast enough - SMX West 2018
PDF
Whats Next in SEO & CRO - 3XE Conference 2018 Dublin
PDF
Migration Best-Practices: So gelingt der erfolgreiche Relaunch - SEOkomm 2017
PDF
Digitale Assistenten - OMX 2017
Migration Best Practices - Peak Ace on Air
SEOday Köln 2020 - Surprise, Surprise - 5 SEO secrets
Technical SEO vs. User Experience - Bastian Grimm, Peak Ace AG
Advanced data-driven technical SEO - SMX London 2019
Migration Best Practices - SMX West 2019
Migration Best Practices - Search Y 2019, Paris
Migration Best Practices - SEOkomm 2018
Data-driven Technical SEO: Logfile Auditing - SEOkomm 2018
The need for Speed: Advanced #webperf - SEOday 2018
OK Google, Whats next? - OMT Wiesbaden 2018
Super speed around the globe - SearchLeeds 2018
Migration Best Practices - SMX London 2018
Welcome to a new reality - DeepCrawl Webinar 2018
Web Performance Madness - brightonSEO 2018
Digitale Assistenzsysteme - SMX München 2018
AMP - SMX München 2018
How fast is fast enough - SMX West 2018
Whats Next in SEO & CRO - 3XE Conference 2018 Dublin
Migration Best-Practices: So gelingt der erfolgreiche Relaunch - SEOkomm 2017
Digitale Assistenten - OMX 2017

Recently uploaded (20)

PPTX
Training Program for knowledge in solar cell and solar industry
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PDF
UiPath Agentic Automation session 1: RPA to Agents
PPTX
TEXTILE technology diploma scope and career opportunities
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
DOCX
search engine optimization ppt fir known well about this
PDF
Flame analysis and combustion estimation using large language and vision assi...
PPTX
Microsoft Excel 365/2024 Beginner's training
PPTX
Internet of Everything -Basic concepts details
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
Training Program for knowledge in solar cell and solar industry
OpenACC and Open Hackathons Monthly Highlights July 2025
Basics of Cloud Computing - Cloud Ecosystem
UiPath Agentic Automation session 1: RPA to Agents
TEXTILE technology diploma scope and career opportunities
sbt 2.0: go big (Scala Days 2025 edition)
sustainability-14-14877-v2.pddhzftheheeeee
Transform-Your-Streaming-Platform-with-AI-Driven-Quality-Engineering.pdf
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Early detection and classification of bone marrow changes in lumbar vertebrae...
NewMind AI Weekly Chronicles – August ’25 Week III
search engine optimization ppt fir known well about this
Flame analysis and combustion estimation using large language and vision assi...
Microsoft Excel 365/2024 Beginner's training
Internet of Everything -Basic concepts details
A review of recent deep learning applications in wood surface defect identifi...
Improvisation in detection of pomegranate leaf disease using transfer learni...
Enhancing plagiarism detection using data pre-processing and machine learning...
giants, standing on the shoulders of - by Daniel Stenberg
Convolutional neural network based encoder-decoder for efficient real-time ob...

Hardening WordPress - Friends of Search 2014 (WordPress Security)

  • 1. FRIENDS OF SEARCH HARDENING WORDPRESS VARIOUS TWEAKS FOR BETTER WP SECURITY
  • 2. WHAT REALLY MATTERS: TOP 3! IF YOU HAVE 5 MINS TO SPARE, JUST DO THESE…
  • 3. #1 Update your blogs regularly! http://wordpress.org/extend/plugins/wp-updates-notifier/
  • 4. Change update behavior… Be sure to REALLY know what you’re doing there…! # Disables ALL core updates: define('WP_AUTO_UPDATE_CORE', false); # Enables all core updates, including minor and majors: define('WP_AUTO_UPDATE_CORE', true); # Default: Enables core updates for minor releases: define('WP_AUTO_UPDATE_CORE', 'minor'); Want something more fine-grained? Check AUTO_UPDATE_$TYPE filter (e.g. auto_update_plugin, auto_update_theme, etc.) which is used for specific updates. http://github.com/georgestephanis/update-control/
  • 7. #2 Get rid of stuff you don’t use! Remove all inactive plug-ins as well as themes!
  • 8. #3 Backup Database & Files, often! http://wordpress.org/extend/plugins/backwpup/
  • 9. SECURITY STARTS AT SETUP MAKE THINGS RIGHT FROM THE BEGINNING…!
  • 10. #4 Setup WordPress properly Use unique keys and salts to add random elements for encryption! Use a cryptic prefix to prevent automated scripts and SQL injections. $table_prefix = ‘wp_VzQCxSJv7uL_ ‘; https://api.wordpress.org/secret-key/1.1/salt/
  • 11. #5 Protect your wp-config.php <files wp-config.php> order deny,allow deny from all </files> This needs to go into your WP roots’ .htaccess file to prevent external access Even better… move wpconfig.php outside of „www“. Also do chmod 400/440
  • 12. #6 Remove the default „admin“ Setup new user as admin; logout. Login w/ new admin; delete old one. Make sure to use a STRONG password, pleeaaasssseeee! http://www.random.org/passwords/
  • 13. #7 Protect your Login (and wp-admin) Recommended: Try the “Lockdown WP Admin” plug-in to protect PHP files in wpadmin as well as the login itself. Don’t just put an .htaccess for basic passwd. protection. It’s a lot of pain… http://wordpress.org/extend/plugins/lockdown-wp-admin/
  • 14. #8 Lock-out multiple failed logins Limit Login Attempts http://wordpress.org/extend/plugins/limit-login-attempts/
  • 15. #9 Even better: Two-factor Verification Info: http://gdig.de/1t - Download: http://gdig.de/1u
  • 16. #9 Even better: Two-factor Verification Google Authenticator http://wordpress.org/plugins/google-authenticator/
  • 17. #9 Even better: Two-factor Verification Provide your login credentials and get auth-code from your mobile phones‘ G-Auth-App.
  • 21. #10 Block malicious URL requests domain.com/?q=%2e%2e or domain.com/path/base64_ will return HTTP 403 (Forbidden). http://wordpress.org/plugins/block-bad-queries/
  • 22. ADDITIONAL TWEAKS THINGS YOU COULD DO IN YOUR CONFIG AS WELL…
  • 23. #11 SSL Logins & Administration define('FORCE_SSL_LOGIN', true); Set FORCE_SSL_LOGIN to “true” to force all logins to happen over SSL. (still allows non-SSL admin sessions) define('FORCE_SSL_ADMIN', true); Use FORCE_SSL_ADMIN to force all logins and all admin sessions to happen over SSL (can be slow…)
  • 24. #12 Move the “wp-content” folder define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'].'/blog/my-wp-content'); WP_CONTENT_DIR points to “new” the full local path (no trailing slash) define('WP_CONTENT_URL', 'http://domain.com/blog/my-wp-content'); WP_CONTENT_URL points to “new” full URI (no trailing slash either)
  • 25. #13 Disable File Editing define('DISALLOW_FILE_EDIT', true); Set DISALLOW_FILE_EDIT to “true” to disable editing files from dashboard. By default, admins are allowed to edit PHP files. Setting the above is equivalent to removing the 'edit_themes', 'edit_plugins' and 'edit_files' capabilities of all users.
  • 26. #14 Fix File & Folder Permissions WP-Security Scan Very important: chmod your wp-config.php to be read-only! http://wordpress.org/extend/plugins/wp-security-scan/
  • 29. @basgr SEO Trainings, Seminars & Strategy Consulting Berlin-based Full-Service Performance Marketing Agency WordPress Security, Consulting & Development www.bg.vu/fos14