Forum Discussion

lcaroca's avatar
lcaroca
Icon for Nimbostratus rankNimbostratus
Aug 02, 2019

block wordpress administration

 

Hi, I have a problem and I don't know how to fix it.

I have migrated a web page from http to https with a valid certificate.

The problem is that when the page was in http, the Wordpress site could not be managed from the internet, now that the service is in https the administration if possible, which I do not want and I do not know how to avoid the administration of Wordpress from f5 without affecting the https service.

Your help is appreciated.

2 Replies

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Icaroca,

    An irule will help you here. Something like this:

    when HTTP_REQUEST { 
      if { [string tolower [HTTP::uri]] equals "/admin" } { 
        HTTP::respond 404 noserver return 
      } 
    }

    Or you could simply drop.

    If you want to block from public ips then you can also do this. Search DC for blocking a URI and you should find an example.

    Hope this helps,

    N​

  •  

    Thank you very much Nathe, I'll try the Irule.

    I tell you how it goes.