• Resolved Ocio132

    (@ocio132)


    hello, good, what code do I have to put so that it does not block the rank math???

    in the File??

    .htninja

    The page I need help with: [log in to see the link]

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

    (@nintechnet)

    Can you paste here the firewall’s log line that shows why Rankmath was blocked?

    Thread Starter Ocio132

    (@ocio132)

    /index.php – WordPress: Blocked access to the WP REST API – [/wp-json/rankmath/v1/dashboardWidget] – eldiariodemof.com

    Plugin Author nintechnet

    (@nintechnet)

    You could disable the “Firewall Policies > WordPress REST API > Block any access to the API” policy.

    Or add this code to the .htninja:

    if ( strpos( $_SERVER['REQUEST_URI'], '/wp-json/rankmath/v1/dashboardWidget' ) === 0 ) {
       return 'ALLOW';
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘block api’ is closed to new replies.