SlideShare ist ein Scribd-Unternehmen logo
1 von 26
YYC
              Bloggers



Plugins & Securing WordPress
Assumptions
• 80%
  – of you here tonight used a one-step install via
    your host or had someone else install and set up
    your blog
  – of you use a custom theme or framework
  – of are completely unaware of how unsecure your
    WP install is
  – have experienced a glitch or site problem after
    installing a plugin
Assumptions
• Everyone here knows of, of has heard of,
  custom themes (purchased or free)
• Several of you will know of frameworks
  – Thesis
  – Genesis
  – Headway
Plugins
• Which are my selects?
• How many should you have?
• What are the risks?
My Selects
• Akismet                 • Social Sharing Toolkit
• Broken Link Checker     • WordPress SEO (Joost)
• CommentLuv              • WP Security Scan
  – Disqus or LiveFyre    • WP Editorial
• Google Analytics for      Calendar
  Wordpress (Joost/adv)   • WP Super Cache
• Limit Login Attempts        – W3 Total Cache
• Secure WordPress
Other Plugins
• WP Touch (paid)          •   Google Analytics (basic)
• Redirection (301)        •   Quick Cache
• Restricted Site Access   •   SimpleReach Slide
• nrelate Related          •   Sharebar
  Content
• Search Everything
• Contact Form 7           • White Label CMS
• Gravity Forms (paid)
Security Plugin
• Better WP Security*
  – Clean installs ideal
  – Create backup
  – Shared hosting could
    run out of RAM or
    CPU resources
  – Force SSL for admin
  – Not recommended
    for the faint of heart!
Install and Remove
• P3
  – Plugin Performance Profiler
• Theme-Check
  – Tests your theme for vulnerabilities and bad code


• Remove all unused themes and plugins!
• Update your plugins regularly please!
How many plugins?
• Too many can slow down your site
• Avoid the shiny plugin syndrome
• Plugins add code – limiting the # of plugins
  limits potential security holes
• Shared hosting is not a friendly environment
  for a site with lots of plugins
Fun for me vs Good for the user?
• Plugins make our lives easier 
• So before you add another plugin ask yourself
  – Do I need the functionality or ‘want it’?
  – Will it help my readers?
  – Will my business/site grow by adding it?
Backups – easy peasy right?
•   Install a plugin and you’re good to go!
•   WRONG!
•   Backing up your dB isn’t enough
•   Disaster can strike at any time
•   Backup your whole site (files) regularly
•   Store the files in the cloud or on a thumbdrive
Backup Plugins
• WP Security
  – Has manual backup built in
• WP DB Backup
  – Doesn’t work for me on GoDaddy
• Wordpress Database Backup (database only)
• Wordpress Backup Plugin (files, images, plugs)
Backup
• Most plugins only ‘backup’ your dB.
• What about restoring?
  – It can be a nightmare, trust me!
• Premium $$
  – blogVault
  – BackupBuddy
  – VaultPress (real-time)
Limit Login Attempts (plugin at work)
Securing WordPress
•   Remove the admin account
•   Install the basic security plugins
•   Remove unused themes and plugins
•   Update WP, Plugins, and Themes regularly
•   Have an admin user account for maintenance
•   Have an editor account for posting
•   Never display the “post” author name
Username vs Author /Display name
Securing WordPress
• Connect via FTP? Switch to FTP-SSL or FTPS if
  your hosting allows for it. Home or coffee
  shop, it’s a good practice.
• When logging in to wp-admin from anywhere
  but home/office, use an
  editor/author/contributor account. Limits the
  risk of interception of an admin account login.
Securing WordPress
• File Permissions (via ftp)
   – CHMOD all files to 644
   – CHMOD all directories/folders to 755
   – CHMOD wp-config.php to 750
   – CHMOD wp-content/ to 644 (777 for updates)
• Change the dB prefix from wp_ (WP Security)
• Use strong passwords, and not the same as
  your gmail, etc.
Securing Wordpress (only for pros)
• Move your wp-config.php file
For example:
public_html/wordpress/wp-config.php
Can be moved to:
public_html/wp-config.php

• Move your wp-content directory
Once you have moved your directory you will need to make some adjustments to your wp-config.php
file. Add the following lines:

define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content' );
define( 'WP_CONTENT_URL', 'http://example/blog/wp-content');

You may also need to define the new location for your plug-ins here by adding these lines to the file:
define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content/plugins' );
define( 'WP_PLUGIN_URL', 'http://example/blog/wp-content/plugins');
Securing WordPress
• Create an .htaccess file in /wp-admin/

  # BEGIN WordPress
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  # END WordPress
Securing WordPress wp-config.php
/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link
https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-
key service}
 * You can change these at any point in time to invalidate all
existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         'hr+t*O/I&B&J2nwMU44d');
define('SECURE_AUTH_KEY', 'j9drDhHcQ 2@ FXGXjj=');
define('LOGGED_IN_KEY',    'M)NxB1-IMrMOvzfUg&!m');
define('NONCE_KEY',        'DVHBzX!*IEcyJs wb/$I');
define('AUTH_SALT',        '#3CGx3fk0RWgnk5598xt');
define('SECURE_AUTH_SALT', '5jRxpF=yV)@bwgDdWC9_');
define('LOGGED_IN_SALT',   'vTqj1RZ=y=-Nf#wg-aBW');
define('NONCE_SALT',       'hFW_D-R!$O2y)Xr*xm14');
Securing WordPress
• Use your google webmaster tools
• Check for keyword significance, crawl errors,
  malware reports.
• If your keyword significance reports unusual
  pharma, adult or similar spam words your site
  likely has been hacked (cloaked).
• Fetch your site as a google bot (tools) and see
  if your site is cloaked to appear different to
  google bot.
Hacked?
1. Take down your site/blog
2. Why? Because most hacks are executed with
   scripts that attach to many files in your site.
3. Just put up a maintenance page. Don’t
   announce you have been hacked.
4. Run you security plugins? You installed them
   right?!
Hacked?
5. Change your WordPress, MySQL and
   hosting/ftp username and password.
6. Check all your header and footer files for any
   suspicious code, JavaScript, links, etc.
7. Happy it all looks ok/clean? Turn it back on.
8. If this fails to work, then it’s time for a clean
   install. Got those backup files? Backup dB?
Defcon 5
• Configure your wp-admin for SSL
• Requires a SSL cert
• Tricky but can be done

• Ideal would be SSL for the whole site
• Challenge is plugins can’t be secured
• This will be my next project/attempt
Best protection?
•   Backup dB
•   Backup files, images, plugins
•   Install security plugins
•   Complex passwords
•   Avoid ‘admin’ login from unsecured locations
•   Limit number of plugins
•   Update plugins and Wordpress
•   You will be hacked at some point.

Weitere ähnliche Inhalte

Was ist angesagt?

Optimizing WordPress - WordPress SF Meetup April 2012
Optimizing WordPress -  WordPress SF Meetup April 2012Optimizing WordPress -  WordPress SF Meetup April 2012
Optimizing WordPress - WordPress SF Meetup April 2012
Ben Metcalfe
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPress
vnsavage
 

Was ist angesagt? (20)

Blog World 2010 - How to Keep Your Blog from Being Hacked
Blog World 2010 - How to Keep Your Blog from Being HackedBlog World 2010 - How to Keep Your Blog from Being Hacked
Blog World 2010 - How to Keep Your Blog from Being Hacked
 
20 Tips to Improving WordPress Website - for Beginners-Aus-2017
20 Tips to Improving WordPress Website - for Beginners-Aus-201720 Tips to Improving WordPress Website - for Beginners-Aus-2017
20 Tips to Improving WordPress Website - for Beginners-Aus-2017
 
Debugging common errors in WordPress by Steve Mortiboy
Debugging common errors in WordPress by Steve MortiboyDebugging common errors in WordPress by Steve Mortiboy
Debugging common errors in WordPress by Steve Mortiboy
 
2010 11 pubcon_hendison_wordpress
2010 11 pubcon_hendison_wordpress2010 11 pubcon_hendison_wordpress
2010 11 pubcon_hendison_wordpress
 
2010 11 pubcon_hendison-hosting
2010 11 pubcon_hendison-hosting2010 11 pubcon_hendison-hosting
2010 11 pubcon_hendison-hosting
 
8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website
 
Battling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support TaleBattling the WSOD - A Tech Support Tale
Battling the WSOD - A Tech Support Tale
 
Optimizing WordPress - WordPress SF Meetup April 2012
Optimizing WordPress -  WordPress SF Meetup April 2012Optimizing WordPress -  WordPress SF Meetup April 2012
Optimizing WordPress - WordPress SF Meetup April 2012
 
Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015Responsive Theme Workshop - WordCamp Columbus 2015
Responsive Theme Workshop - WordCamp Columbus 2015
 
High Performance WordPress
High Performance WordPressHigh Performance WordPress
High Performance WordPress
 
WordPress Resources Nov 2014
WordPress Resources Nov 2014WordPress Resources Nov 2014
WordPress Resources Nov 2014
 
Squeeze Maximum Performance From Your Joomla Website
Squeeze Maximum Performance From Your Joomla WebsiteSqueeze Maximum Performance From Your Joomla Website
Squeeze Maximum Performance From Your Joomla Website
 
HyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQLHyperDB, MySQL Performance, & Flavors of MySQL
HyperDB, MySQL Performance, & Flavors of MySQL
 
Managing WordPress
Managing WordPressManaging WordPress
Managing WordPress
 
Ithemes presentation
Ithemes presentationIthemes presentation
Ithemes presentation
 
Speed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate PerformanceSpeed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate Performance
 
WordPress Security
WordPress SecurityWordPress Security
WordPress Security
 
What is (not) WordPress
What is (not) WordPressWhat is (not) WordPress
What is (not) WordPress
 
Piecing Together the WordPress Puzzle
Piecing Together the WordPress PuzzlePiecing Together the WordPress Puzzle
Piecing Together the WordPress Puzzle
 
Ship WordPress Projects Like a Boss
Ship WordPress Projects Like a BossShip WordPress Projects Like a Boss
Ship WordPress Projects Like a Boss
 

Andere mochten auch

WordPress Plugins
WordPress PluginsWordPress Plugins
WordPress Plugins
randyhoyt
 
Creating and Maintaining WordPress Plugins
Creating and Maintaining WordPress PluginsCreating and Maintaining WordPress Plugins
Creating and Maintaining WordPress Plugins
Mark Jaquith
 

Andere mochten auch (20)

Intro to WordPress Plugins
Intro to WordPress PluginsIntro to WordPress Plugins
Intro to WordPress Plugins
 
Developing WordPress Plugins
Developing WordPress PluginsDeveloping WordPress Plugins
Developing WordPress Plugins
 
WordPress Plugins (WordCamp Utah)
WordPress Plugins (WordCamp Utah)WordPress Plugins (WordCamp Utah)
WordPress Plugins (WordCamp Utah)
 
WordPress Plugins For Website Development
WordPress Plugins For Website DevelopmentWordPress Plugins For Website Development
WordPress Plugins For Website Development
 
Intro to WordPress Plugins
Intro to WordPress PluginsIntro to WordPress Plugins
Intro to WordPress Plugins
 
Introduction To Simple WordPress Plugin Development
Introduction To Simple WordPress Plugin DevelopmentIntroduction To Simple WordPress Plugin Development
Introduction To Simple WordPress Plugin Development
 
WordPress Plugins
WordPress PluginsWordPress Plugins
WordPress Plugins
 
Developing Plugins For WordPress
Developing Plugins For WordPressDeveloping Plugins For WordPress
Developing Plugins For WordPress
 
Beginning WordPress Plugin Development
Beginning WordPress Plugin DevelopmentBeginning WordPress Plugin Development
Beginning WordPress Plugin Development
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin Development
 
Wordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short TutorialWordpress Plugin Development Short Tutorial
Wordpress Plugin Development Short Tutorial
 
Creating and Maintaining WordPress Plugins
Creating and Maintaining WordPress PluginsCreating and Maintaining WordPress Plugins
Creating and Maintaining WordPress Plugins
 
Introduction To WordPress
Introduction To WordPressIntroduction To WordPress
Introduction To WordPress
 
Developing WordPress Plugins : For Begineers
Developing WordPress Plugins :  For BegineersDeveloping WordPress Plugins :  For Begineers
Developing WordPress Plugins : For Begineers
 
An easy guide to Plugin Development
An easy guide to Plugin DevelopmentAn easy guide to Plugin Development
An easy guide to Plugin Development
 
Favorite WordPress Plugins 2016
Favorite WordPress Plugins 2016Favorite WordPress Plugins 2016
Favorite WordPress Plugins 2016
 
Jokes in slides
Jokes in slidesJokes in slides
Jokes in slides
 
The impact of innovation on travel and tourism industries (World Travel Marke...
The impact of innovation on travel and tourism industries (World Travel Marke...The impact of innovation on travel and tourism industries (World Travel Marke...
The impact of innovation on travel and tourism industries (World Travel Marke...
 
Reuters: Pictures of the Year 2016 (Part 2)
Reuters: Pictures of the Year 2016 (Part 2)Reuters: Pictures of the Year 2016 (Part 2)
Reuters: Pictures of the Year 2016 (Part 2)
 
The Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post FormatsThe Six Highest Performing B2B Blog Post Formats
The Six Highest Performing B2B Blog Post Formats
 

Ähnlich wie WordPress Plugins and Security

WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
Joe Casabona
 

Ähnlich wie WordPress Plugins and Security (20)

Protect Your WordPress From The Inside Out
Protect Your WordPress From The Inside OutProtect Your WordPress From The Inside Out
Protect Your WordPress From The Inside Out
 
Up and Running with WordPress - Site Shack Nashville Web Design
Up and Running with WordPress - Site Shack Nashville Web DesignUp and Running with WordPress - Site Shack Nashville Web Design
Up and Running with WordPress - Site Shack Nashville Web Design
 
Securing WordPress by Jeff Hoffman
Securing WordPress by Jeff HoffmanSecuring WordPress by Jeff Hoffman
Securing WordPress by Jeff Hoffman
 
WCBos13 intermediate workshop
WCBos13 intermediate workshopWCBos13 intermediate workshop
WCBos13 intermediate workshop
 
WordPress End-User Security
WordPress End-User SecurityWordPress End-User Security
WordPress End-User Security
 
WordPress Intermediate Workshop
WordPress Intermediate WorkshopWordPress Intermediate Workshop
WordPress Intermediate Workshop
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
WordPress Fav Plugins & Security
WordPress Fav Plugins & SecurityWordPress Fav Plugins & Security
WordPress Fav Plugins & Security
 
Optimize wordpress
Optimize wordpressOptimize wordpress
Optimize wordpress
 
WordPress Security and Best Practices
WordPress Security and Best PracticesWordPress Security and Best Practices
WordPress Security and Best Practices
 
WordPress Security Essentials
WordPress Security EssentialsWordPress Security Essentials
WordPress Security Essentials
 
Responsible [digital] Home Ownership
Responsible [digital] Home OwnershipResponsible [digital] Home Ownership
Responsible [digital] Home Ownership
 
Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010Now That's What I Call WordPress Security 2010
Now That's What I Call WordPress Security 2010
 
WordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security FundamentalsWordPress Security - 12 WordPress Security Fundamentals
WordPress Security - 12 WordPress Security Fundamentals
 
Top Ten WordPress Security Tips for 2012
Top Ten WordPress Security Tips for 2012Top Ten WordPress Security Tips for 2012
Top Ten WordPress Security Tips for 2012
 
Updating WordPress Themes, Plugins, and Core Safely
Updating WordPress Themes, Plugins, and Core SafelyUpdating WordPress Themes, Plugins, and Core Safely
Updating WordPress Themes, Plugins, and Core Safely
 
WordPress Security
WordPress SecurityWordPress Security
WordPress Security
 
Word press beirut 9th meetup march
Word press beirut 9th meetup   marchWord press beirut 9th meetup   march
Word press beirut 9th meetup march
 
NEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityNEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & Security
 
WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

WordPress Plugins and Security

  • 1. YYC Bloggers Plugins & Securing WordPress
  • 2. Assumptions • 80% – of you here tonight used a one-step install via your host or had someone else install and set up your blog – of you use a custom theme or framework – of are completely unaware of how unsecure your WP install is – have experienced a glitch or site problem after installing a plugin
  • 3. Assumptions • Everyone here knows of, of has heard of, custom themes (purchased or free) • Several of you will know of frameworks – Thesis – Genesis – Headway
  • 4. Plugins • Which are my selects? • How many should you have? • What are the risks?
  • 5. My Selects • Akismet • Social Sharing Toolkit • Broken Link Checker • WordPress SEO (Joost) • CommentLuv • WP Security Scan – Disqus or LiveFyre • WP Editorial • Google Analytics for Calendar Wordpress (Joost/adv) • WP Super Cache • Limit Login Attempts – W3 Total Cache • Secure WordPress
  • 6. Other Plugins • WP Touch (paid) • Google Analytics (basic) • Redirection (301) • Quick Cache • Restricted Site Access • SimpleReach Slide • nrelate Related • Sharebar Content • Search Everything • Contact Form 7 • White Label CMS • Gravity Forms (paid)
  • 7. Security Plugin • Better WP Security* – Clean installs ideal – Create backup – Shared hosting could run out of RAM or CPU resources – Force SSL for admin – Not recommended for the faint of heart!
  • 8. Install and Remove • P3 – Plugin Performance Profiler • Theme-Check – Tests your theme for vulnerabilities and bad code • Remove all unused themes and plugins! • Update your plugins regularly please!
  • 9. How many plugins? • Too many can slow down your site • Avoid the shiny plugin syndrome • Plugins add code – limiting the # of plugins limits potential security holes • Shared hosting is not a friendly environment for a site with lots of plugins
  • 10. Fun for me vs Good for the user? • Plugins make our lives easier  • So before you add another plugin ask yourself – Do I need the functionality or ‘want it’? – Will it help my readers? – Will my business/site grow by adding it?
  • 11. Backups – easy peasy right? • Install a plugin and you’re good to go! • WRONG! • Backing up your dB isn’t enough • Disaster can strike at any time • Backup your whole site (files) regularly • Store the files in the cloud or on a thumbdrive
  • 12. Backup Plugins • WP Security – Has manual backup built in • WP DB Backup – Doesn’t work for me on GoDaddy • Wordpress Database Backup (database only) • Wordpress Backup Plugin (files, images, plugs)
  • 13. Backup • Most plugins only ‘backup’ your dB. • What about restoring? – It can be a nightmare, trust me! • Premium $$ – blogVault – BackupBuddy – VaultPress (real-time)
  • 14. Limit Login Attempts (plugin at work)
  • 15. Securing WordPress • Remove the admin account • Install the basic security plugins • Remove unused themes and plugins • Update WP, Plugins, and Themes regularly • Have an admin user account for maintenance • Have an editor account for posting • Never display the “post” author name
  • 16. Username vs Author /Display name
  • 17. Securing WordPress • Connect via FTP? Switch to FTP-SSL or FTPS if your hosting allows for it. Home or coffee shop, it’s a good practice. • When logging in to wp-admin from anywhere but home/office, use an editor/author/contributor account. Limits the risk of interception of an admin account login.
  • 18. Securing WordPress • File Permissions (via ftp) – CHMOD all files to 644 – CHMOD all directories/folders to 755 – CHMOD wp-config.php to 750 – CHMOD wp-content/ to 644 (777 for updates) • Change the dB prefix from wp_ (WP Security) • Use strong passwords, and not the same as your gmail, etc.
  • 19. Securing Wordpress (only for pros) • Move your wp-config.php file For example: public_html/wordpress/wp-config.php Can be moved to: public_html/wp-config.php • Move your wp-content directory Once you have moved your directory you will need to make some adjustments to your wp-config.php file. Add the following lines: define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content' ); define( 'WP_CONTENT_URL', 'http://example/blog/wp-content'); You may also need to define the new location for your plug-ins here by adding these lines to the file: define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content/plugins' ); define( 'WP_PLUGIN_URL', 'http://example/blog/wp-content/plugins');
  • 20. Securing WordPress • Create an .htaccess file in /wp-admin/ # BEGIN WordPress RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
  • 21. Securing WordPress wp-config.php /**#@+ * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret- key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */ define('AUTH_KEY', 'hr+t*O/I&B&J2nwMU44d'); define('SECURE_AUTH_KEY', 'j9drDhHcQ 2@ FXGXjj='); define('LOGGED_IN_KEY', 'M)NxB1-IMrMOvzfUg&!m'); define('NONCE_KEY', 'DVHBzX!*IEcyJs wb/$I'); define('AUTH_SALT', '#3CGx3fk0RWgnk5598xt'); define('SECURE_AUTH_SALT', '5jRxpF=yV)@bwgDdWC9_'); define('LOGGED_IN_SALT', 'vTqj1RZ=y=-Nf#wg-aBW'); define('NONCE_SALT', 'hFW_D-R!$O2y)Xr*xm14');
  • 22. Securing WordPress • Use your google webmaster tools • Check for keyword significance, crawl errors, malware reports. • If your keyword significance reports unusual pharma, adult or similar spam words your site likely has been hacked (cloaked). • Fetch your site as a google bot (tools) and see if your site is cloaked to appear different to google bot.
  • 23. Hacked? 1. Take down your site/blog 2. Why? Because most hacks are executed with scripts that attach to many files in your site. 3. Just put up a maintenance page. Don’t announce you have been hacked. 4. Run you security plugins? You installed them right?!
  • 24. Hacked? 5. Change your WordPress, MySQL and hosting/ftp username and password. 6. Check all your header and footer files for any suspicious code, JavaScript, links, etc. 7. Happy it all looks ok/clean? Turn it back on. 8. If this fails to work, then it’s time for a clean install. Got those backup files? Backup dB?
  • 25. Defcon 5 • Configure your wp-admin for SSL • Requires a SSL cert • Tricky but can be done • Ideal would be SSL for the whole site • Challenge is plugins can’t be secured • This will be my next project/attempt
  • 26. Best protection? • Backup dB • Backup files, images, plugins • Install security plugins • Complex passwords • Avoid ‘admin’ login from unsecured locations • Limit number of plugins • Update plugins and Wordpress • You will be hacked at some point.