Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. WordPress (Developer)
  3. Where the COOKIEHASH comes from ?

Where the COOKIEHASH comes from ?

Scheduled Pinned Locked Moved Solved WordPress (Developer)
6 Posts 3 Posters 2.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • JOduMonTJ Offline
    JOduMonTJ Offline
    JOduMonT
    wrote on last edited by
    #1

    I saw in my wp-config.php a COOKIEHASH which suppose to be (if I understood well) a md5 of siteurl

    the one generated in my wp-config is not a md5 valid
    I means it contain invalid characters such as g-z
    example: define( 'COOKIEHASH', md5('iNhg1WZsm5nYEHY9OYsKyhFJ7yo4B53s') );

    1 Reply Last reply
    0
    • JOduMonTJ JOduMonT

      @Lonk thanks for the clarification
      so this code is not generated by the WordPress installation and it is a parameter Cloudron added for more security ?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #5

      @JOduMonT said in Where the COOKIEHASH comes from ?:

      so this code is not generated by the WordPress installation and it is a parameter Cloudron added for more security ?

      Yes, we added it in the package. I installed a whole bunch of security plugins like WP Fence, SecuPress and what not and ran all the scans. One of the scan suggested that this be set to a more random value than the default for more security. Currently, this is only set for new installations.

      LonkleL 1 Reply Last reply
      1
      • LonkleL Offline
        LonkleL Offline
        Lonkle
        wrote on last edited by
        #2

        There are best practices but the COOKIEHASH can be anything. I see 3 potential reasons for changing it:

        • Block bot attempted Logins with the custom cookie constant

        • Two installations can potentially (but unlikely) have a conflict in the login (cannot be logged into both at once in the same browser instance). This solves that!

        • Security through obscurity as this is one less thing to identify your site as run by Wordpress

        That’s all I’ve got. I never customized mine, but after writing about it I think I will. Thanks for bringing this up!

        JOduMonTJ 1 Reply Last reply
        0
        • LonkleL Lonkle

          There are best practices but the COOKIEHASH can be anything. I see 3 potential reasons for changing it:

          • Block bot attempted Logins with the custom cookie constant

          • Two installations can potentially (but unlikely) have a conflict in the login (cannot be logged into both at once in the same browser instance). This solves that!

          • Security through obscurity as this is one less thing to identify your site as run by Wordpress

          That’s all I’ve got. I never customized mine, but after writing about it I think I will. Thanks for bringing this up!

          JOduMonTJ Offline
          JOduMonTJ Offline
          JOduMonT
          wrote on last edited by
          #3

          @Lonk thanks for the clarification
          so this code is not generated by the WordPress installation and it is a parameter Cloudron added for more security ?

          LonkleL girishG 2 Replies Last reply
          0
          • JOduMonTJ JOduMonT

            @Lonk thanks for the clarification
            so this code is not generated by the WordPress installation and it is a parameter Cloudron added for more security ?

            LonkleL Offline
            LonkleL Offline
            Lonkle
            wrote on last edited by
            #4

            @JOduMonT I have the Developer Edition and it’s not in mine?

            1 Reply Last reply
            0
            • JOduMonTJ JOduMonT

              @Lonk thanks for the clarification
              so this code is not generated by the WordPress installation and it is a parameter Cloudron added for more security ?

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              @JOduMonT said in Where the COOKIEHASH comes from ?:

              so this code is not generated by the WordPress installation and it is a parameter Cloudron added for more security ?

              Yes, we added it in the package. I installed a whole bunch of security plugins like WP Fence, SecuPress and what not and ran all the scans. One of the scan suggested that this be set to a more random value than the default for more security. Currently, this is only set for new installations.

              LonkleL 1 Reply Last reply
              1
              • girishG girish

                @JOduMonT said in Where the COOKIEHASH comes from ?:

                so this code is not generated by the WordPress installation and it is a parameter Cloudron added for more security ?

                Yes, we added it in the package. I installed a whole bunch of security plugins like WP Fence, SecuPress and what not and ran all the scans. One of the scan suggested that this be set to a more random value than the default for more security. Currently, this is only set for new installations.

                LonkleL Offline
                LonkleL Offline
                Lonkle
                wrote on last edited by
                #6

                @girish That makes sense why it wasn’t in mine. I’m planning to reinstall anyway for LDAP support so I’ll let your install script add the custom COOKIEHASH for me. ☺️

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Bookmarks
                • Search