Blocking wp-login on wordpress ..
Hi All, I need to block the access on wp-login resource from external ip.
I try this Irule :
when HTTP_REQUEST { if { ! ([IP::addr "10.0.0.0 mask 255.0.0.0" equals [IP::client_addr]]) } { log local0. "Client IP: [IP::client_addr]" switch -glob [string tolower [HTTP::uri]] { "/admin" { log local0. "ADMIN" drop log local0. "Dropped admin [IP::client_addr]" } "/wp-login" { log local0. "LOGIN" drop log local0. "Dropped login [IP::client_addr]" } default { return } } } }
but doesn't work the drop instruction.
I try the HTTP::respond 403 content {Not Authorized 403 !} command but I don't have (or I don't know) how enabling HTTP profile on VS.
I have this final version "BIG-IP 9.4.5 Build 1049.10 Final" and on pool I have SNAT option.
Any suggestions ?