If you are tired of WordPress asking for your FTPÂ details every time you run an upgrade. This little hack will make it remember those details once and for all.
![WordPress FTP Details WordPress FTP Details](https://i0.wp.com/2.bp.blogspot.com/_IZq3p83P-jI/TTTWCJWpJlI/AAAAAAAAAPU/0klEgBAIQzE/s1600/WordPress-FTP-Details.png?resize=500%2C266)
Open your wp-config.php file and add the below lines in it filled with your details:
define('FTP_HOST', 'ftp.yoursite.com'); define('FTP_USER', 'FTP_username'); define('FTP_PASS', 'FTP_password'); define('FTP_SSL', true); // If you use a SSL connection set this to true.
That’s it!
Now to protect this file from public access, add these lines in your .htaccess file:
<files wp-config.php> order allow,deny deny from all </files>