Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CSF Messenger - Show users the IP Blocked message via HTTPS

Discussion in 'Security' started by Greg M, Jun 14, 2019 at 10:23 AM.

  1. Greg M

    Greg M Active Member

    Joined:
    May 26, 2016
    Messages:
    31
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    Glasgow, Scotland
    cPanel Access Level:
    Root Administrator
    So I was trying to find this info myself and found it rather difficult to find what I wanted. Yes the CSFs docs to cover it but unless you knew exactly what you were looking for there's a good chance you'll miss it.

    IF you have the messenger service enabled, by default it will only show the "Your IP is blocked by server" text to non secure (http) connections. For IPs who are blocked but trying to connect via secure (https) connections, the defaults will NOT show them message instead, the address will seem to time out leading the user to most likely think the server / site is down rather than them being blocked.

    To enable Messenger for HTTPS you can do the following steps



    In CSF config you need to modify the following either via GUI or the conf file itself:


    1. Obviously enable Messenger service if not already
    2. Messenger User - this must not be a cpanel user/account - using something like 'csf' is fine.
    3. Messengerv2 - Set this to 1 - without this HTTPS will not show a message to blocked IP's and will timeout instead (potentially making users think your site/server is down)
    4. Messenger_https_in - Set these ports for your HTTPS web port and cpanel and WHMs https ports - e.g. 443, 2083, 2086, 2087, 2089, 2096
    5. Done - everything else should be either left at their defaults or are optional. Read the docs to see if you want to change more


    Hope this will help someone as I struggled to find the info for this in the first place
     
    cPanelLauren likes this.
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Greg M

    Thanks for sharing this information! For others that may read this in the future keep in mind that CSF is a 3rd party software and if you have issues with this the best resource to get assistance will be their forums here: ConfigServer Community Forum - Index page
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice