Title: Setting: Inclusions
Last modified: September 19, 2025

---

# Setting: Inclusions

 *  Resolved [flowdee](https://wordpress.org/support/users/flowdee/)
 * (@flowdee)
 * [11 months, 3 weeks ago](https://wordpress.org/support/topic/setting-inclusions/)
 * In contrast to the “exclusions” setting I would love to have a way to include
   urls which should be uploaded only.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Burhan Nasir](https://wordpress.org/support/users/burhandodhy/)
 * (@burhandodhy)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/setting-inclusions/#post-18659604)
 * Hi [@flowdee](https://wordpress.org/support/users/flowdee/),
   I have introduced
   a new filter `smart_aui_validate_image_url`, which allows you to download images
   only from certain websites. The code will look something like this.
 *     ```wp-block-code
       add_filter(  'smart_aui_validate_image_url',  function ( $is_valid, $url ) {    $allowed_domains = [      'example.com',      'example.org',    ];    $url_host = wp_parse_url( $url, PHP_URL_HOST );    if ( ! in_array( $url_host, $allowed_domains, true ) ) {      return false;    }    return $is_valid;  },  10,  2);
       ```
   
 * Regards,
   Burhan
 *  Thread Starter [flowdee](https://wordpress.org/support/users/flowdee/)
 * (@flowdee)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/setting-inclusions/#post-18660076)
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Setting: Inclusions’ is closed to new replies.

 * ![](https://ps.w.org/smart-auto-upload-images/assets/icon-256x256.jpg?rev=3338471)
 * [Smart Auto Upload Images - Import External Images](https://wordpress.org/plugins/smart-auto-upload-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-auto-upload-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-auto-upload-images/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-auto-upload-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-auto-upload-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-auto-upload-images/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [flowdee](https://wordpress.org/support/users/flowdee/)
 * Last activity: [11 months, 1 week ago](https://wordpress.org/support/topic/setting-inclusions/#post-18660076)
 * Status: resolved