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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Global blocking of wpscan enumerate users

Discussion in 'Security' started by kszadkowski, Jul 19, 2017.

  1. kszadkowski

    kszadkowski Registered

    Joined:
    Sep 30, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Wordpress have vulnerability of enumeration users with a simple wpscan script. Since I have many pages on Wordpress on my server, I would like to block this. Of course, this is simply done by adding a few lines to the .htaccess file on a particular server:
    Code:
    <IfModule mod_rewrite.c>
    RewriteCond %{QUERY_STRING} ^author=([0-9]*)
    RewriteRule .* https://127.0.0.1:8080/? [L,R=302]
    </IfModule>
    
    But I would like to do it globally. I have tried in the cpanel in Service Configuration> Apache Configuration> Include Editor. Unfortunately it did not work.

    So how can I add these few lines globally to all accounts on cpanel?
     
    #1 kszadkowski, Jul 19, 2017
    Last edited by a moderator: Jul 19, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. kszadkowski

    kszadkowski Registered

    Joined:
    Sep 30, 2014
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    No, the "Include Editor" option is for changes outside of the VirtualHost directives. The documentation I provided is for changes within the Virtual Hosts.

    Thank you.
     
Loading...

Share This Page