With HTTP everything is visible when traveling on the Internet. By generating an SSL certificate and configuring your webserver you can force browsers to use HTTPS. Here is how to proceed:
# 1. Install letsencrypt
sudo pip install letsencrypt
| <?php | |
| /** | |
| * NOTICE_____________________________________________________________________ | |
| * ALWAYS use the Kaiser's version - it's safer. | |
| * This forked version is just to catch errors in the case of non-admin users. | |
| * --------------------------------------------------------------------------- | |
| */ | |
| defined( 'ABSPATH' ) OR exit; | |
| /** |
| <?php | |
| function tl_save_error() { | |
| update_option( 'plugin_error', ob_get_contents() ); | |
| } | |
| add_action( 'activated_plugin', 'tl_save_error' ); | |
| /* Then to display the error message: */ |
| <?php | |
| if ( ! function_exists( 'hippo_plugin_hook_info' ) ): | |
| function hippo_plugin_hook_info( $hook_name ) { | |
| global $wp_filter; | |
| $docs = array(); | |
| $template = "\t - %s Priority - %s.\n\tin file %s #%s\n\n"; | |
| echo '<pre>'; |
| <!DOCTYPE html> | |
| <title>Site Maintenance - {{sitename}}</title> | |
| <style> | |
| body { text-align: center; padding: 10%; } | |
| h1 { font-size: 50px; margin-bottom: 0; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 90%; max-width: 700px; margin: 0 auto; } | |
| a { color: #19a15e; text-decoration: none; font-weight: bold; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| /** Source: http://codepen.io/MadeByMike/pen/ZOrEmr | Author: Mike (http://codepen.io/MadeByMike) **/ | |
| html, body { | |
| margin: 0; | |
| } | |
| header { | |
| position: fixed; | |
| top: 0; | |
| height: 125px; |
| /** Source: https://codepen.io/oaviv/pen/GqXwYp | Author: Ohad **/ | |
| body { | |
| padding: 50px; | |
| background-color: #11151C; | |
| color: #7D4E57; | |
| line-height: 170%; | |
| font-family: sans-serif; | |
| } | |
| body .container { |
| { | |
| "added_words": | |
| [ | |
| "Permalink", | |
| "clientele" | |
| ], | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/Agila Theme/Agila Light Solarized.tmTheme", | |
| "draw_minimap_border": true, |
| <?php | |
| $data_dir = 'c:/server/www/dev/data/'; | |
| $releases = [ ]; | |
| foreach ( range( 3.2, 4.0, 0.1 ) as $version ) { | |
| $version = number_format( $version, 1 ); | |
| $data = json_decode( file_get_contents( $data_dir . $version . '.json' ), true ); | |
| $groups = wp_list_pluck( $data['groups'], 'data' ); |