There is a custom type of WordPress-posts: cards , registered through the register_post_type function with the ability to select images for these types of posts:

register_post_type('cards', array( 'labels' => $labels, 'public' => false, 'show_ui' => true, 'has_archive' => false, 'supports' => array( 'title', 'thumbnail' ), )); 

How can I protect these downloadable images for my type of cards from direct download?

As I understand it, you can:

  • to ensure that these images are not loaded into the standard folder, but somewhere else, for example uploads / cards - is it possible?
  • close direct access to files uploads / cards folder - here is just .htaccess

    0