{"id":12,"date":"2017-06-30T09:38:45","date_gmt":"2017-06-30T09:38:45","guid":{"rendered":"http:\/\/jaipurhosting.com\/blog\/?p=12"},"modified":"2024-10-30T18:00:02","modified_gmt":"2024-10-30T12:30:02","slug":"first-level-authentication-for-joomla-admin-page","status":"publish","type":"post","link":"https:\/\/www.jaipurhosting.com\/blog\/first-level-authentication-for-joomla-admin-page\/","title":{"rendered":"First level authentication for Joomla admin page"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><strong>Description :&nbsp;<\/strong><\/p>\n<p>Most common and frequent hacking attempts occurring on Joomla is Brute Force &amp; Denial Of Service (DDoS) attacks.<\/p>\n<p>One of the effective trick to prevent Brute Force &amp; Denial Of Service (DDoS) attack is by enabling first level authentication to Joomla admin login page , this can be done using the .htaccess file.<\/p>\n<p>The .htaccess file is a powerful configuration file that allows you to improve your site\u2019s security and performance. In this article, we will show you how to enable First level authentication for your Joomla admin login page in right way.<\/p>\n<p>Before you make any changes, you need to backup your existing .htaccess file. If you cannot see the .htaccess file, then make sure you selected \u2018Show Hidden Files (dotfiles) \u2018 option in your Cpanel File manager Settings.<\/p>\n<p>&nbsp;<\/p>\n<p>We can see the steps in below :<\/p>\n<p>Step1 : Login to control panel =&gt; File manager =&gt; Public_html<\/p>\n<p>Step2 : Click =&gt; Administrator for joomla and create .htaccess file<\/p>\n<p>Step3 : Edit the .htaccess file and enter the script as below<\/p>\n<p>****<\/p>\n<p>AuthType Basic<br \/>\nAuthName &#8220;Password protected area&#8221;<br \/>\nAuthUserFile \/home\/username\/.htpasswd<br \/>\nrequire valid-user<\/p>\n<p>****<\/p>\n<p>Replace \u2018user name\u2019 with your control panel user name.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-13 size-full\" src=\"http:\/\/jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/3.png\" alt=\"\" width=\"824\" height=\"214\" srcset=\"https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/3.png 824w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/3-300x78.png 300w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/3-768x199.png 768w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Step4 : Create .htpasswd file in your home directory and copy paste the below link and save changes.<\/p>\n<p>test:$apr1$22ySDKoX$yVG9dFSXYM3HDTwwdwFPq.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-14 size-full\" src=\"http:\/\/jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/4.png\" alt=\"\" width=\"775\" height=\"210\" srcset=\"https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/4.png 775w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/4-300x81.png 300w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/4-768x208.png 768w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Step5 : We can encrypt the password using MD5 encryption methos with the help of online tools.<\/p>\n<p>&nbsp;<\/p>\n<p>Step6 : After done this when browse your joomla admin page you can able to see the first level authentication as per the screenshot.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8\" src=\"http:\/\/jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/6.jpg\" alt=\"\" width=\"1225\" height=\"357\" srcset=\"https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/6.jpg 1225w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/6-300x87.jpg 300w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/6-768x224.jpg 768w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/6-1024x298.jpg 1024w\" sizes=\"auto, (max-width: 1225px) 100vw, 1225px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Enter =&gt; username \u2013 test ; password \u2013 test<\/p>\n<p>&nbsp;<\/p>\n<p>Step7 : When we provide the correct login details then we can able to view the joomla admin page as below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9\" src=\"http:\/\/jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/7.png\" alt=\"\" width=\"1249\" height=\"501\" srcset=\"https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/7.png 1249w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/7-300x120.png 300w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/7-768x308.png 768w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/7-1024x411.png 1024w\" sizes=\"auto, (max-width: 1249px) 100vw, 1249px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Step8 : When we provide the wrong details you can get the error message as below.<\/p>\n<p>Error message throws depends upon the contents updated in the script<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10\" src=\"http:\/\/jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/8.jpg\" alt=\"\" width=\"1365\" height=\"339\" srcset=\"https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/8.jpg 1365w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/8-300x75.jpg 300w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/8-768x191.jpg 768w, https:\/\/www.jaipurhosting.com\/blog\/wp-content\/uploads\/2017\/06\/8-1024x254.jpg 1024w\" sizes=\"auto, (max-width: 1365px) 100vw, 1365px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Step9 : Revert the changes to disable the first level authentication.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Description :&nbsp; Most common and frequent hacking attempts occurring on Joomla is Brute Force &amp; Denial Of Service (DDoS) attacks. One of the effective trick to prevent Brute Force &amp; Denial Of Service (DDoS) attack is by enabling first level authentication to Joomla admin login page , this can be done using the .htaccess [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1269,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":4,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"predecessor-version":[{"id":2323,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions\/2323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/media\/1269"}],"wp:attachment":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}