Learn about Centmin Mod LEMP Stack today
Register Now

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

    26
    6
    3
    Jun 21, 2020
    Ratings:
    +10
    Local Time:
    9:23 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

    45,703
    10,377
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,103
    Local Time:
    7:23 PM
    Nginx 1.19.x
    MariaDB 5.5/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