Secure WordPress login with additional Authentication Layer
November 5, 2016 Comments 0 318 Views

Secure WordPress login with additional Authentication Layer

We can use WordPress for creating a different website having default or custom functionalities. WordPress can be use for creating Blog, CMS, Ecommerce, Community, Social Site, Download Management, Movies Hub etc etc.. There are number of plugins available to make that possible.

Secure WordPress login to get protected.

You can secure WordPress login and We will show you how the additional layer of authentication can be added to WordPress site. But this is only advisable if your are not allowing users to login or register on the website. So it protect the website like blogs, CMS, magazine sites..

Using this additional layer of authentication filter will make your login secure and will allow only the admin to login on website with particular username and all other admins or users will be denied.

Code to Secure WordPress login.

Place below code in your theme functions.php the path for same will be ( wp-content/themes/yourthemefolder/functions.php ) Adding below code will only allow admin with username “webadmin” to access the login and enter the admin area.

Above code is tested in live website, in case of any issue using the above code then please report in below comment section so we can provide needed help.

Previous Change admin username in wordpress for security
Next Store passwords securely in PHP to prevent password hacking

About author

Rio 37 posts

Expert web developer working in PHP, Wordpress, Joomla, Magento, Javascript etc.

You might also like

WordPress 0 Comments

Remove HTML Comments from wordpress website source

Once you are done creating your WordPress website, have a look at your HTML source code generated by the browser. You may notice many HTML comments added by your theme

WordPress 0 Comments

Remove & Clean not required items from WordPress Head Section.

If you check the source of your WordPress WebSite then you will see many attributes lines in your wordpress head section. Not all are required items and we always think

WordPress 0 Comments

Change admin username in wordpress for security

When you install new wordpress to create your website then the after setup the default admin username created is “admin” unless you specified any different username. This is the main

WordPress 0 Comments

Remove Emoji Script & CSS from your wordpress source code.

When you install a new wordpress you will find a Emoji Script and CSS in your wordpress source code. Looking at the code you may feel it is unwanted and

WordPress 0 Comments

Boost your wordpress site using htaccess optimization methods

You can optmize your wordpress website using htaccess file techniques. Only enabling the Compression, Setting up Header Expiry, Setting Header Cache controls can do wonders with your page loading speed.

WordPress 0 Comments

Remove category & tag base from WordPress url

WordPress permalinks add category as a base in URL of categories where your URL becomes /category/categoryname/ there is no issue in using this URL. But still many of us need