Get the most out of your Centmin Mod LEMP stack
Become a Member

Wordpress Support for WordPress personal data exports

Discussion in 'Blogs & CMS usage' started by ct_roy, Oct 29, 2020.

Tags:
  1. ct_roy

    ct_roy Premium Member Premium Member

    39
    6
    8
    Jun 21, 2020
    Ratings:
    +11
    Local Time:
    12:48 AM
    1.17.10
    10.3.22
    WP supports personal data export requests.
    Tools Export Personal Data Screen

    The zip files generated will get a 403 thanks to this (sensible) rule
    Code:
    location ~* ^/(wp-content)/(.*?)\.(zip|gz|tar|bzip2|7z)$ { deny all; }
    
    I added an exception as follows above this rule:
    Code:
    location /wp-content/uploads/wp-personal-data-exports/ {
            location ~ ^/wp-content/uploads/wp-personal-data-exports/(.+/)?(.+)\.(zip)$ { allow all; expires 30d; }
    
    }
    
    Might be worth considering add something similar to the core wpsecure conf config as it's core WP functionality.

     
  2. eva2000

    eva2000 Administrator Staff Member

    50,130
    11,563
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,946
    Local Time:
    9:48 AM
    Nginx 1.21.x
    MariaDB 10.x
    Interesting thanks for heads up. Will look at adding that for defaults.

    I haven't used Wordpress export/import feature before. Only first time using it the other day to migrate a specific set of blog posts from one Wordpress install to another and needed to migrate the uploaded images too and used Export media with selected content without issue or error. Migrated posts from https://servermanager.guide/ to newly setup https://blog.centminmod.com/ :D