Author Topic: Global WordPress BRUTE FORCE FLOOD  (Read 1832 times)

0 Members and 1 Guest are viewing this topic.

Offline Sam

  • I am what I am
  • Universal Moderator
  • Super Member
  • *
  • Points: 2631
  • Posts: 1316
  • I am what I am

    • NIEC
    • _
    • View Profile
    • TheGeekyWay- Free tutorials on Programming, WebDevelopment, Electronics, Linux etc.
« on: April 12, 2013, 02:25:24 pm »
There is a worldwide, highly-distributed WordPress attack that is ongoing. This attack is known to be using forged or spoofed IP addresses. We are actively blocking the most common attacking IP addresses across our server farm. The following steps can be used to secure (by password protection) wp-login.php for all WordPress sites in your cPanel account:
How to Password Protect the wp-login.php File
There are two (2) steps in accomplishing this. First you need to define a password in the.wpadmin file, and then you activate the security in the .htaccess file.

Step 1: Create the Password File
Create a file named .wpadmin and place it in your home directory, where visitors can't access it. (Please note there is a period preceding the wpadmin in that file name.) The following example is for cPanel. Plesk would require placing the file in/var/www/vhosts or /var/www/vhosts/domain.
EXAMPLE: /home/username/.wpadmin (where "username" is the cPanel username for the account.)
Put the username and encrypted password inside the .wpadmin file, using the formatusername:encryptedpassword
EXAMPLE: john:n5MfEoHOIQkKg (where "john" is a username of your choice, and the password shown is encrypted.)

Option A: Generate Password File & Uploading Via File Manager
One way to do this is to generate the file using the website linked below, and then upload it to your site via FTP or File Manager. In the directions below, we will use File Manager, but you could use FTP instead, for those of you familiar with FTP.
Use the form to create the username and password.
Login to cPanel in another window.
Click on File Manager
Select "Home Directory"
Check "Show Hidden Files (dotfiles)" if not already checked.
Click on the "Go" button.
Look for a .wpadmin file.
If one exists, right click on it and select "Code Edit" to open the editor. Click on the Edit button to edit the file.
If one does not exist, click on "New File" at the top of the page, and specify the name as .wpadmin (with the dot at the front) and click on the "Create New File" button.
Paste the code provided from the website in step 2.
Click on the "Save Changes" button when complete.
You can "Close" the file when finished.
Option B: Creating the Password File via SSH / Command Line

To create the encrypted password you will need to use a utility such as the command-line program htpasswd. More detailed technical information about htpasswd can be found at
An example would be to do this:
htpasswd -c /home/username/.wpadmin john
You would then be prompted to enter the password you wish to use for the username "john" in order to access the wp-login page. You can then log into the wp-admin interface as you normally would. There are many other online tools that can be used to convert standard passwords to encrypted for this purpose.

Step 2: Update the .htaccess File

All domains under the home directory will share the common .wpadmin file, and that previous command creates the /home/username/.wpadmin file due to the -c. The last step is to place the following code in the /home/username/.htaccess file:

ErrorDocument 401 "Unauthorized Access"
ErrorDocument 403 "Forbidden"
<FilesMatch "wp-login.php">
AuthName "Authorized Only"
AuthType Basic
AuthUserFile /home/username/.wpadmin
require valid-user

NOTE: Make sure you replace username with your Cpanel Username

IF any one needs help to configure the same, you can conatct me any time :)

Credits : support bulletin

Source : Techism Group Facebook
« Last Edit: April 12, 2013, 02:28:09 pm by Sam »
You do not have permission to give points
point 0 Points

This topic did not receive points.


Microsoft announces Windows 8 Global App Fest in India

Started by ichawla

Replies: 0
Views: 1713
Last post September 17, 2012, 01:20:20 pm
by ichawla
Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49