HomeSecurity

WordPress WP Admin Ko Password Protect Kaise Banaye?

Like Tweet Pin it Share Share Email

wp admin password protect

Brute Force attack se apni wordpress site ko protect karne ke liye agar aap wp admin folder ko password protect karte hain to yah ek extra security layer set karte hain jo aapki site ko aur jyada protect karta hai.




File manager me hamari site ke 3 main folders hote hain:-

  1. WP-content: Yaha aapki plugins, themes, images videos files store ki jati hain.
  2. WP-includes: Yaha wordpress software ki files store ki jati hai.
  3. WP Admin: Yaha aapke user accounts and passwords ki details store ki jati hai.

Aap apni wordpress site me login karte hain tab aapko User name and password enter karna padta hai, uske baad aap apne Dashboard ko access kar sakte hain.

WP admin folder ko agar aap password protect karte hain to Login page me enter karne ke liye bhi aapko User name and password enter karna padta hai, mean advanced security layer.

Mean, aap jab apne wordpress dashboard me login karne ke liye address enter karenge: yoursite.com/wp-login.php to aap se user name and password enter karne ke liye kaha jayega. See below image

password protect wp admin




Jaisa ki above image me aap dekh sakte hain maine jaise hi apne wordpress site me login karne ke liye address type karne ke liye kaha ja raha hai.

WP – Admin password protect Kyu kare?

WP admin folder ko jab aap password protect kar dete hain to ek aur security layer aap apne login page me set kar dete hain.

Extra security layer set karne se aapki site me Brute force attack jaise hacking attempt stop hote hain aur aapki site more secure hoti hai.

WPbeginner.com jaisi popular site ne bhi is secuirty method ko apni site me add kiya hai.

WP Admin ko Password Protect kare

Hamare new wordpress users easily is task ko kar sakte hain apne Hosting Cpanel par. See how:-

1

Sabse pahle apne Hosting account par login kare aur Cpanel open kare. Cpanel me aapko Security option me Directory Password or password protect directories icon par click karna hai.

security cpanel




2

password directories list me aapko Public_Html folder par click karna hai. (folder ki jagah name par click na kare, warna next option open nahi hoga, see below)

password protect directory

3

public_html folder par click karne ke baad ab aapko WP-admin par click karna hai. (see below)

password protect wp admin

4

Ab last step me aapko WP admin folder ke liye user name and password set karna hai. See below image:

passwoord protect wp-admin




  1. Password protect this directory par check mark kare.
  2. Enter a name for the protected directory me aap apna custom message type kar sakte hain jaise ki – Authorized users only access this page, not allowed, sorry this page for admins only.
  3. User name me apna User name set kare, yah user name enter karke aap apne Login URL ko access kar sakte hain.
  4. Password me apna strong password enter kare. Aap Password generator option se strong password create kar sakte hain.
  5. Now click Add or Modify the Authorized User

Note: Apna user name and password note kar le. yahi login details se aap apne login page me enter kar payenge. Warna aapko Login karne me problem hogi.

Done! ab jab bhi aap apne wordpress site me login karne ke liye address type karenge aapko apna set kiya gaya User name and password enter karna hoga, tabhi aap apne login page par enter kar payenge.

Fix 404 error

Agar aap Login karte samay login page par 404 error receive kar rahe hain to yah common error hai.

Is error ko fix karne ke liye apne Cpanel par File Manager open kare.

File manager me Public_html me .htaccess file me right click kar edit par click kare.

Now .htaccess file me below code paste kar de.




ErrorDocument 401 default

Fix Admin Ajax problem

WP-admin password protected karne se kuch plugins me aap Ajax related issue face karenge, kyunki wp-admin folder me Admin-ajax.php available hoti hai aur wo bhi password protect ho jane se plugins use nahi kar pati.

Aapko Admin-ajax ko password protection remove karna hota hai, iske liye File manager open kare.

File manager me WP-admin folder me .htaccess file ko edit kar below code paste kar de and save kar le.

<Files admin-ajax.php>
    Order allow,deny
    Allow from all
    Satisfy any 
</Files>

Agar aapke wp-admin folder me .htaccess file available nahi hai to aap apne notepad par .htaccess file create kar sakte hain aur usme yah code paste kar wp-admin folder me upload kar sakte hain.

Conclusion

To is tarah se aap apne wo-admin folder ko password protect banakar advanced security apni site ke liye set kar sakte hain aur brute force attack se sote secure kar sakte hain.

Comments (2)

  • Sir maine apna blog blogger se wordpress par transfer kar liya hai lekin ek problem ho rahi hai google search me blog par click karne par 404 page not found error show kar raha hai is problem ko fix karne ke liye kya karu
    mera dusra sawal ye hai ki kya blog ko fir se webmaster tool or google analytic me fir se submit karna padhega.

    Reply
    • Author

      hi md qureshi,
      Blogger xml file upload karne ke baad wordpress dashboard par jaye aur Settings–permalink me Post Name select kar save kare.
      Yah settings aapko Blogger import karne se pahle kar leni chahiye thi.
      aap new sitemap submit kar sakte hain. bus blogger delete na kare
      Blogger blog me 301 redirection set kare

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *