security - Is a very simple theme secure enough?

admin2025-06-03  3

I am very very new to Wordpress theme development and after creating one, I want to know if any threats will face it. There is no way i receive any data from visitors, including no comments received. There are no forms nor any plugins to receive any data.
What I want to know is if the theme I've created is secure enough to be used as a news website or not.
Thank you very much in advance.

I am very very new to Wordpress theme development and after creating one, I want to know if any threats will face it. There is no way i receive any data from visitors, including no comments received. There are no forms nor any plugins to receive any data.
What I want to know is if the theme I've created is secure enough to be used as a news website or not.
Thank you very much in advance.

Share Improve this question asked Feb 1, 2019 at 15:43 TowerTower 1032 bronze badges 1
  • 1 It’s hard to say without seeing the code... – Krzysiek Dróżdż Commented Feb 1, 2019 at 16:15
Add a comment  | 

1 Answer 1

Reset to default 1

If you follow the guidelines of the Codex for Themes (start here: https://codex.wordpress/Theme_Development ), and ensure that any user-supplied input (if any) is sanitized, then a theme will be secure.

This also assumes that you have done basic security on your install. For instance:

  • strong passwords on all accounts
  • create an admin account without the 'admin' name
  • take the first user account and demote it to subscriber (not an admin)
  • strong passwords for your hosting account
  • strong passwords for any FTP users on your hosting account
  • keeping all plugins current/updated
  • updating WordPress to current levels
  • use latest PHP version on your site

Then your site will be less susceptible to attack. You'll also find lots of security guidelines via the googles. Look at them carefully and apply those that are needed.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748952926a315110.html

最新回复(0)