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.

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:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
  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:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
Loading...

Share This Page