wordpress security - the beacon agency...wordpress database prefix note: this can break your site if...

27
www.BEACON.AGENCY WORDPRESS SECURITY HOUSTON WORDPRESS MEETUP

Upload: others

Post on 26-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

WORDPRESSSECURITY

HOUSTON WORDPRESS MEETUP

Page 2: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

SCHEDULE AGENDA

● Why WordPress Security is

Important

● The Role of Web Hosting

● The Role of Core, Themes,

and Plugins

● WordPress Security in Easy

Steps

● Advanced WordPress Security

● Fixing a Hacked Site

11:00 NETWORKING

11:30 SECURITY DISCUSSION

12:30 NETWORKING

Page 3: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

ABOUT ME- ED PERRYPRESIDENT OF

THE BEACON [email protected]

@TheEdPerry

www.BEACON.AGENCY

Page 4: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

WORDPRESS SECURITYOVERVIEW

Page 5: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

WHY WORDPRESS SECURITY IS IMPORTANT

● Prevents hacking

● Loss of time/energy

● Loss of Revenue

● Loss of Sensitive Data/PII

● Downtime

Page 6: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

THE ROLE OF WEB HOSTING

● Basic Server Security

● Shared vs Dedicated

● VPS

● Managed

● SSLWho You Host With Makes A Difference

Page 7: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

THE ROLE OF CORE, THEMES, AND PLUGINS

Update them, or pay the price!

● Avoid Known Vulnerabilities

● Core, Theme, and Plugin

Updates

● Automatic Core Updates

● Automated Updates (with

backups)

● Use Supported Themes

● Avoid Free Versions of Paid

Plugins

Page 8: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

WORDPRESS SECURITY IN EASY STEPS

Page 9: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

INSTALL A WORDPRESS

BACKUP SOLUTION

Back it up!

● Choose a plugin○ VaultPress (with Jetpack)

○ BackupBuddy

○ UpdraftPlus

● Full Backups vs. Snapshots

● Automated Backups, How

Often?

● Backups before Updates

● Off-site Storage

Page 10: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

INSTALL A WORDPRESS

SECURITY PLUGINChoose Wisely...

● Sucuri Security

● Wordfence

● iThemes Security

● Follow the Instructions / Read

the Directions

Page 11: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

ENABLE WEB APPLICATION

FIREWALL (WAF)Stop Problems Before They Get To

Your Site

● Sucuri

● CloudFlare

● Paid Services

● “Set and Forget”

Page 12: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

USE 2-FACTOR AUTHENTICATION

FOR LOGINAll The Cool Kids Are Doing It...

● Many Plugins to Accomplish

This

● Some Security Plugins Already

Include It

● Google Authenticator, SMS,

Email

Page 13: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

DISABLE TRACKBACKS

What Have You Done For Me Lately?

● Settings > Discussion

● Uncheck “Allow link

notifications from other blogs

(pingbacks and trackbacks)”

Page 14: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

DISCOURAGE SPAMMERS

● Human Interface Form

● Akismet Anit-Spam

● Captcha Plugins (there are

many)

● Some Contact Form Plugins

already include as an option

● OR Disable Comments

Page 15: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

ADVANCEDWORDPRESSSECURITY

Page 16: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

CHANGE THE DEFAULT “ADMIN”

USERNAME

● Three Methods:

1. Create a new admin

username and delete the old

one.

2. Use the Username Changer

plugin

3. Update username from

phpMyAdmin

Page 17: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

DISABLE FILE EDITING

You can easily do this by adding the following code in your wp-config.php file.

Page 18: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

DISABLE PHP FILE EXECUTION

● disable PHP file execution in

directories where it’s not

needed e.g.

/wp-content/uploads/

● Open a text editor

● Save as “.htaccess” and

upload to

/wp-content/uploads/

Page 19: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

LIMIT LOGIN ATTEMPTS

● Easily done with Plugins● Login LockDown Plugin● Wordfence Security Plugin● Limit number of login

attempts● Block invalid Usernames

Page 20: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

CHANGE WORDPRESS

DATABASE PREFIXNote: This can break your site if this is not done properly. Only

proceed if you feel comfortable with your coding skills.

● Change Table Prefix in wp-config.php from “wp_” to something else like this “wp_a123456_”

● Change all Database Tables Name

● Change all Database Tables Name

● Search the options table for any other fields that is using “wp_ “

● Search the usermeta for all fields that is using “wp_”

● Backup and Done

Page 21: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

PASSWORD PROTECT

WP-ADMIN AND LOGIN

● Can be done in Cpanel OR:● Create a .htpasswds file using

this generator● Upload this file outside your

/public_html/ directory● Create a .htaccess file and

upload it in /wp-admin/ ● Add this and save:

Page 22: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

DISABLE DIRECTORY

INDEXING AND BROWSING

● Open the .htaccess file in

your root directory

● Add the following line at the

end of the .htaccess file

● Save and upload .htaccess file

back to your site

Page 23: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

ADD SECURITY QUESTIONS TO WORDPRESS

LOGIN

● Install the WP Security

Questions plugin

● Settings » Security Questions

page to configure

Page 24: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

DISABLE LOGIN HINTS

● Open functions.php file

● Add this code:

● Change the “What the heck

are you doing?! Back off!”

message to better fit your

mood.

Page 25: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

FIXING A HACKED SITE

Page 26: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

YOU’VE BEEN HACKED

Now What?

● Identify the Hack

● Check with your Hosting

Company for help

● Malware Scanning and

Removal (hire a pro?)

● Check User Permissions

● Change Your Secret Keys

● Change Your Passwords

AGAIN

Page 27: WORDPRESS SECURITY - The Beacon Agency...WORDPRESS DATABASE PREFIX Note: This can break your site if this is not done properly. Only proceed if you feel comfortable with your coding

www.BEACON.AGENCY

THANKS FOR JOINING ME!Got Questions?

Email me: [email protected]