How to Secure WordPress wp-config.php file and Protect from Hackers [WordPress Security]

By -
0 Flares Filament.io 0 Flares ×

This is All About Securing Your wp-config.php its help you to Save your WordPress blogs from hackers and symlinking attacks, Here is simple script listed below which will disable or hide your Mysql database from all users it will let you hide easily using .htaccess editor.

 
What is Symlinks ? 
Hackers use this attack to for hacking wordpress , forums or any CMS they fine a vulnerable site from a server and they hack into the site they find others sites database and birng it into that, there is some php shell scripts which hack do symlinks. This is little definition of symlink attack.
 

How to protect your WordPress wp-config.php file:
  1. Download or Edit your .htaccess file from the server. This is located in the same section as your wp-config.php or index.php file. (If you don’t have an .htaccess file, then you will need to create one, see directions below). the .htaccess file will be in root directory if it is not then create new one.
  2. Using a text editor, like Notepad, open your .htaccess file.
  3. Copy and paste the following code into your .htaccess file to deny access to your wp-config.php file.
 
# protect wpconfig.php

order allow,deny
deny from all


When saving your changes using “Notepad,” make sure that you change the “Save as type” dropdown to “All Files” so that it does not change your .htaccess file into a .txt file.

Secure WordPress Configuration File .

How to create your own .htaccess file:
  1. Open up “Notepad” on your computer.
  2. Copy and paste the code to deny access to your wp-config.php file (see above).
  3. Click on File > Save As >
  4. Change File Name to .htaccess
  5. In the “Save as type” dropdown, change to “All Files.”
  6. Upload this file to your server in the top-level of your WordPress files are (index.php, wp-app.php, wp-config.php, etc.).
Although there are many more things that you can do to protect your WordPress website, knowing that your wp-config.php file is now more protected should give you some peace of mind. Sleep better tonight!Incoming Search Terms:

How to Protect Your WordPress From Getting Hacked

Protect WordPress WP-config file

Protect and Hide File 

Protect WordPress using htaccess file

Best WordPress Security Tutorial

0 Flares Twitter 0 Facebook 0 Google+ 0 Reddit 0 Filament.io 0 Flares ×

My Name is Umer i am a self made blogger, i learn blogging my own self, i love to learn more and share some best blogging tips on my this blog. I hope you may like my some articles special thank you to reading about my self. Please Check my Latest Project @ Templotic - Best Blogger Templates