Skip to content

Instantly share code, notes, and snippets.

View gowebsmarty's full-sized avatar
💭
Infinite Coding

Vijay Prakash gowebsmarty

💭
Infinite Coding
View GitHub Profile
@gowebsmarty
gowebsmarty / wp-config.php
Created June 26, 2021 17:33
WP Encryption CDN - Using FILE MANAGER on your hosting, please edit wp-config.php file and add the below code at very top of the file in a new line after <?php tag,
# START WP_ENCRYPTION_FIREWALL
if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_X_FORWARDED_FOR"];
$_SERVER["HTTPS"] ="on";
}
define("FORCE_SSL_ADMIN", false);
# END WP_ENCRYPTION_FIREWALL
@gowebsmarty
gowebsmarty / 2019-https-localhost.md
Created December 6, 2020 14:24 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).