WordPress Salts, Unique Keys & Database Prefix - WP Hack Prevention & Security | WP Learning Lab

Поделиться
HTML-код
  • Опубликовано: 30 июн 2024
  • 🔥Name Your Own Price🔥 for the 11-Point WP Security Checklist Smart PDF: wplearninglab.com/go/wpsecuri...
    In this tutorial I show you how to add WordPress unique keys and salts to your WP-Config.php file and how to change the WordPress database prefix. Both of these are important for WordPress data security and WordPress database security.
    To start off you'll need to login into the File Manager of your hosting account or log into your website root via FTP. Then open the WP-Config.php file for editing.
    Once open scroll down about half way and you will see a section called Authentication Unique Keys and Salts. These unique keys and salts are used by WordPress to better encrypt user passwords and other sensitive data.
    In the paragraph just below the Authentication Unique Keys and Salts title you will see a URL: api.wordpress.org/secret-key/...
    Go to that URL and refresh the page a few times to get your unique data. Copy and paste that data into your WP-Config.php and overwrite the default values:
    define('AUTH_KEY', 'put your unique phrase here');
    define('SECURE_AUTH_KEY', 'put your unique phrase here');
    define('LOGGED_IN_KEY', 'put your unique phrase here');
    define('NONCE_KEY', 'put your unique phrase here');
    define('AUTH_SALT', 'put your unique phrase here');
    define('SECURE_AUTH_SALT', 'put your unique phrase here');
    define('LOGGED_IN_SALT', 'put your unique phrase here');
    define('NONCE_SALT', 'put your unique phrase here');
    That's it's for adding the WordPress salt keys. Next is the changing the WordPress database prefix which you can do right below the salt keys in the section titled: WordPress Database Table prefix. The method outlined below only works during the installation process. If you already have your site running then you'll need to use a free plugin called Change DB Prefix to make the change.
    If you are just now installing WordPress follow the instructions below.
    The database prefix will go before all WordPress tables in the database. The default MySQL database prefix "wp_" and all the standard WordPress table names are known by hackers and dataminers. Knowing this information they will have an easier time getting into your database.
    For good WordPress hack prevention change the "wp_" prefix to random alphanumeric characters (I usually end the prefix with an underscore "_" to keep things clean). That way, even if a hacker can access your WordPress database remotely they probably won't be able to guess your database prefix, which means your data is safer.
    And that's all there is to these two important WordPress security tweaks.
    I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
    --------------
    If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.
    wplearninglab.com/
    Connect with us:
    WP Learning Lab Channel: ruclips.net/user/subscription_c...
    Facebook: / wplearninglab
    Twitter: / wplearninglab
    Google Plus: google.com/+Wplearninglab
    Pinterest: / wplearninglab

Комментарии • 12

  • @imad200430
    @imad200430 Год назад

    Hello
    Your are the Best one
    Here is in 2022 and you vidéos are very instructifs
    I can t find the plugin Change DB prefix , is there any other plugin please ?

  • @PswACC
    @PswACC 5 лет назад

    Thanks! Great Video!

  • @wplearninglab
    @wplearninglab  9 лет назад

    [VIDEO] WordPress salts, unique keys & database prefix - WP hack prevention & security ruclips.net/video/nOLNVFSeBvc/видео.html #WordPress #tutorial

  • @2Niels
    @2Niels 6 лет назад +1

    Thanks for that - very helpful and not too scary! ;)

    • @wplearninglab
      @wplearninglab  6 лет назад

      You're welcome. That one definitely isn't too scary. I have some other tutorials where you do much scarier things! Thanks for watching!

  • @rkfsearchresults3832
    @rkfsearchresults3832 5 лет назад +1

    If changing out these salts, will current password settings change, so they have to be reset?
    I recently learned that changing the prefix doesn't matter any more. I still do it though.
    I also always do the manual to customize the database name.

    • @wplearninglab
      @wplearninglab  5 лет назад +2

      I still change the prefix too, lol.
      Adding salts does not change passwords, but it does change how they are stored in the database. You will have to login again after changing salts.
      I hope that helps, thanks for watching!

  • @Quizzical106
    @Quizzical106 4 года назад

    I can't find the database prefix plugin

  • @gregtdude
    @gregtdude 7 лет назад

    Why do you need to change the salts that are already present in the wp-config.php file?

    • @wplearninglab
      @wplearninglab  7 лет назад +1

      In the video I happen to have had the salts in place already. In a new Wordpress install the salts are not set by default. It's just a simple way to increase security.

  • @thehealthgod
    @thehealthgod 8 лет назад

    Parse error: syntax error, unexpected '';' (T_CONSTANT_ENCAPSED_STRING this what i see everytime i try to access my domain now since i have done this

  • @JuanGomez-qh8gu
    @JuanGomez-qh8gu 8 лет назад

    z