Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nintechnet

    (@nintechnet)

    If you want to whitelist access to those 8 REST API endpoints with the .htninja script, you could use a code similar to this one:

    <?php
    
    /* Whitelist:
      realmedialibrary/v1
      real-physical-media/v1
      real-category-library/v1
      real-thumbnail-generator/v1
      real-custom-post-order/v1
      real-cookie-banner/v1
      real-product-manager-wp-client/v1
      real-queue/v1
    */
    if ( isset( $_SERVER['REQUEST_URI'] ) && preg_match(
       '!^/wp-json/real(?:medialibrary|-(?:physical-media|category-library|'.
       'thumbnail-generator|custom-post-order|cookie-banner|product-manager-'.
       'wp-client|queue))/v1!', $_SERVER['REQUEST_URI'] ) ) {
    
       define('NFW_UWL', true);
       return 'ALLOW';
    }
    
    Thread Starter blackthunderwolf

    (@blackthunderwolf)

    Excuse me. Unfortunately I didn’t see that the answer ended up in SPAM.

    Thank you for the info. Can the .htninja also be used in the free version or only in the paid version?

    Plugin Author nintechnet

    (@nintechnet)

    You can use the .htninja with all versions and editions of NinjaFirewall: WP, WP+, Pro and Pro+.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htninja API entries help’ is closed to new replies.