WAF rules and whitelist

Hello,

My allowlist and rules don’t function. I attempted to add the rule “(http.request.uri.path contains “/wp-login.php” and ip.src ne myIP) or (http.request.uri.path contains “/wp-admin/” and http.request.uri.path ne “/wp-admin/admin-ajax.php” and ip.src ne myIP) or (http.request.uri.path contains “/wp-admin/theme-editor.php” and ip.src ne myIP)”. WhatsMyIpAddress is where I get my IP address from. Or I tried to add the following rule “(http.request.uri.path contains “/wp-login.php”) or (http.request.uri.path contains “/wp-admin/” and http.request.uri.path ne “/wp-admin/admin-ajax.php”) or (http.request.uri.path contains “/wp-admin/theme-editor.php”)” and allowlist the IP from Tools and it still didn’t work when I tried to access the website from this IP, I was blocked. Please assist me. I don’t understand why I am not able to access the site from this IP.

I found that if I allowlist only the IPv4, I will not be able to access the website. But if I also allowlist the IPv6, it will work. Can you tell me why this behavior is occurring? I don’t understand the behaviour.