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!

Protect all your WordPress sites on your cPanel server quickly and easily

Discussion in 'Security' started by webstandardcss, Apr 28, 2013.

  1. webstandardcss

    webstandardcss Registered

    Joined:
    Apr 28, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Help to protect all your WordPress sites on your cPanel server quickly and easily from WordPress botnet brute force attacks.

    user@server [~]# sudo -i

    root@server [~]# vi /usr/local/apache/conf/includes/post_virtualhost_2.conf

    Code:
    # Paste the following lines.
    ErrorDocument 401 "Unauthorized Access"
    ErrorDocument 403 "Forbidden"
    <FilesMatch "wp-login.php">
    AuthName "Authorized Only"
    AuthType Basic
    AuthUserFile /home/.wpadmin
    require valid-user
    </FilesMatch>
    root@server [~]# htpasswd -c /home/.wpadmin pressuser
    root@server [~]# cat /home/.wpadmin # Verify correct username.

    root@server [~]# chmod 755 /home/.wpadmin

    root@server [~]# service httpd restart

    Follow more discussion here at WordPress › Support » HOWTO: Protect all your WordPress sites on your cPanel server quickly and easily
     
  2. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    330
    Likes Received:
    3
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Thanks, worth a try :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ThePartizan

    ThePartizan Registered

    Joined:
    May 2, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Tahnk you so much, that is wht ı have been looking for 5 days

    - - - Updated - - -

    Tahnk you so much, that is wht ı have been looking for 5 days
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,440
    Likes Received:
    416
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    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