SlideShare une entreprise Scribd logo
1  sur  31
7 Ways to Secure Your
WordPress Website –
without any Plugins
Tan Kian Ann
WordPress Wednesdays – 24 April 2013
Please don’t copy, lah.
Will put up the slides for you to refer to,
share on WPUG Facebook.
#1. Set a Strong Password
Question:
What is the most common
password used today?
Set your password to “incorrect”.
So when you key in wrongly, the
computer will tell you
“Your password is incorrect.”
Set a Strong Password
• password
• 123456
• 12345678
• abc123
• qwerty
• monkey
• letmein
• dragon
• 111111
• baseball
• iloveyou
• trustno1
• 1234567
• sunshine
• master
• 123123
• welcome
• shadow
• ashley
• football
• jesus
• michael
• ninja
• mustang
• Password1
Source: http://gizmodo.com/
25 most common passwords (2012)
Set a Strong Password
• Mix uppercase, lowercase, numbers, symbols.
• Balance “secure” and “easy to remember”.
• E.g. Queenstown street 45, blk 700 #17-44 –
Qb700#17_44
• E.g. Imagination is more important than
knowledge (Albert Einstein), born 1897 –
iimitk*AE*1897
Set a Strong Password
• Or use a password manager
– KeePass
– 1Password
– Roboform
– LastPass
– … many more
#2. Don’t use “Admin” as username
Don’t use “Admin” as username
Don’t use “Admin” as username
If you already have “admin” as username:
1. Log in as “admin”.
2. Create a new administrator account using a
different username.
3. Log out of “admin”.
4. Log in using the new account you created.
5. Delete the “admin” account. You can attribute
the existing posts to the new account.
Don’t use “Admin” as username
Preferably:
1. Don’t use a dictionary word.
2. Don’t use popular names.
3. Don’t use your name.
#3. Use a Different Table Prefix
Use a Different Table Prefix
Use a Different Table Prefix
If you already have “wp_” as the database
prefix:
1. I know, no plugins but…
http://wordpress.org/extend/plugins/change
-table-prefix/
2. Or if you want to do it yourself…
http://www.wpbeginner.com/wp-
tutorials/how-to-change-the-wordpress-
database-prefix-to-improve-security/
#4. Set Proper File Permissions
Set Proper File Permissions
• Best practice:
– All files – 644 or 640
– All directories – 755 or 750
– wp-config.php – 400
• Usually can be set using an FTP program, or
web hosting control panel.
#5. Hide WordPress Info
Hide WordPress Info
• Remove these files:
– license.txt
– readme.html
Hide WordPress Info
Hide WordPress Info
• Hide generator statement
• Inside wp-
content/themes/<yourtheme>/functions.php,
add this line:
remove_action('wp_head', 'wp_generator');
#6. Update your secret keys
Update your secret keys
Inside wp-config.php – these secret keys adds an
extra layer of security.
Update your secret keys
• Introduced recently
– WordPress 2.6 (Jul 08): AUTH_KEY, SECURE_AUTH_KEY,
LOGGED_IN_KEY
– WordPress 2.7 (Dec 08): NONCE_KEY
– WordPress 3.0 (Jun 10): AUTH_SALT, SECURE_AUTH_SALT,
LOGGED_IN_SALT, NONCE_SALT
• Before WordPress 2.6 – non-existent.
(Remember, wp-config is not touched when you
update WordPress)
• Generate these at:
https://api.wordpress.org/secret-key/1.1/salt/
#7. Keep all files up to date
Keep all files up to date
Keep all files up to date
• 3 things to keep updated:
– WordPress core
– Plugins
– Themes
• Done quickly thru the WordPress backend!
• Remove unused files – themes, plugins etc.
• Remember to do a backup before performing
doing an update!
Conclusion: 7 Ways
1. Set a Strong Password
2. Don’t use “Admin” as username
3. Use a Different Table Prefix
4. Set Proper File Permissions
5. Hide WordPress Info
6. Update your secret keys
7. Keep all files up to date
Good to know, better to have it
implemented!
Reference
http://codex.wordpress.org/Hardening_WordPress
Thank You!
Tan Kian Ann
+65 96195806
tankianann@gmail.com
http://www.facebook.com/tankianann

Contenu connexe

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

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...
 
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
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

7 ways to Secure your WordPress Website - Without Using Any Plugins

  • 1. 7 Ways to Secure Your WordPress Website – without any Plugins Tan Kian Ann WordPress Wednesdays – 24 April 2013
  • 2. Please don’t copy, lah. Will put up the slides for you to refer to, share on WPUG Facebook.
  • 3. #1. Set a Strong Password
  • 4. Question: What is the most common password used today?
  • 5. Set your password to “incorrect”. So when you key in wrongly, the computer will tell you “Your password is incorrect.”
  • 6. Set a Strong Password • password • 123456 • 12345678 • abc123 • qwerty • monkey • letmein • dragon • 111111 • baseball • iloveyou • trustno1 • 1234567 • sunshine • master • 123123 • welcome • shadow • ashley • football • jesus • michael • ninja • mustang • Password1 Source: http://gizmodo.com/ 25 most common passwords (2012)
  • 7. Set a Strong Password • Mix uppercase, lowercase, numbers, symbols. • Balance “secure” and “easy to remember”. • E.g. Queenstown street 45, blk 700 #17-44 – Qb700#17_44 • E.g. Imagination is more important than knowledge (Albert Einstein), born 1897 – iimitk*AE*1897
  • 8. Set a Strong Password • Or use a password manager – KeePass – 1Password – Roboform – LastPass – … many more
  • 9. #2. Don’t use “Admin” as username
  • 10. Don’t use “Admin” as username
  • 11. Don’t use “Admin” as username If you already have “admin” as username: 1. Log in as “admin”. 2. Create a new administrator account using a different username. 3. Log out of “admin”. 4. Log in using the new account you created. 5. Delete the “admin” account. You can attribute the existing posts to the new account.
  • 12. Don’t use “Admin” as username Preferably: 1. Don’t use a dictionary word. 2. Don’t use popular names. 3. Don’t use your name.
  • 13. #3. Use a Different Table Prefix
  • 14. Use a Different Table Prefix
  • 15. Use a Different Table Prefix If you already have “wp_” as the database prefix: 1. I know, no plugins but… http://wordpress.org/extend/plugins/change -table-prefix/ 2. Or if you want to do it yourself… http://www.wpbeginner.com/wp- tutorials/how-to-change-the-wordpress- database-prefix-to-improve-security/
  • 16. #4. Set Proper File Permissions
  • 17. Set Proper File Permissions • Best practice: – All files – 644 or 640 – All directories – 755 or 750 – wp-config.php – 400 • Usually can be set using an FTP program, or web hosting control panel.
  • 19. Hide WordPress Info • Remove these files: – license.txt – readme.html
  • 21. Hide WordPress Info • Hide generator statement • Inside wp- content/themes/<yourtheme>/functions.php, add this line: remove_action('wp_head', 'wp_generator');
  • 22. #6. Update your secret keys
  • 23. Update your secret keys Inside wp-config.php – these secret keys adds an extra layer of security.
  • 24. Update your secret keys • Introduced recently – WordPress 2.6 (Jul 08): AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY – WordPress 2.7 (Dec 08): NONCE_KEY – WordPress 3.0 (Jun 10): AUTH_SALT, SECURE_AUTH_SALT, LOGGED_IN_SALT, NONCE_SALT • Before WordPress 2.6 – non-existent. (Remember, wp-config is not touched when you update WordPress) • Generate these at: https://api.wordpress.org/secret-key/1.1/salt/
  • 25. #7. Keep all files up to date
  • 26. Keep all files up to date
  • 27. Keep all files up to date • 3 things to keep updated: – WordPress core – Plugins – Themes • Done quickly thru the WordPress backend! • Remove unused files – themes, plugins etc. • Remember to do a backup before performing doing an update!
  • 28. Conclusion: 7 Ways 1. Set a Strong Password 2. Don’t use “Admin” as username 3. Use a Different Table Prefix 4. Set Proper File Permissions 5. Hide WordPress Info 6. Update your secret keys 7. Keep all files up to date
  • 29. Good to know, better to have it implemented!
  • 31. Thank You! Tan Kian Ann +65 96195806 tankianann@gmail.com http://www.facebook.com/tankianann