This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom admin functions for this theme | |
* | |
* | |
* @package Jasper_Espejo_Theme | |
*/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pagespeed on; | |
pagespeed FileCachePath "/var/ngx_pagespeed_cache"; | |
pagespeed FileCacheSizeKb 102400; | |
pagespeed FileCacheCleanIntervalMs 3600000; | |
pagespeed FileCacheInodeLimit 500000; | |
pagespeed LRUCacheKbPerProcess 8192; | |
pagespeed LRUCacheByteLimit 16384; | |
pagespeed EnableCachePurge on; | |
pagespeed MemcachedServers "127.0.0.1:11211"; | |
pagespeed PreserveUrlRelativity on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
MU Plugin: remove-jetpack-css | |
Plugin Name: WP Remove Jetpack CSS | |
Plugin URI: http://www.blog-des-telecoms.com | |
Description: Remove jetpack CSS | |
Version: 1.0 | |
Author: Mathias WOLFF | |
Author URI: http://www.mathias-wolff.fr | |
License: GPLv3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select id="country_international" class="country_international"> | |
<option value="" selected="selected"></option> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> | |
<option value="Antigua and Barbuda">Antigua and Barbuda</option> | |
<option value="Argentina">Argentina</option> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Block by country | |
# The countries blocked below are Brazil, China, South Korea, Russia, Kazachstan, Ukraine | |
# Add to server{) block | |
if ($geoip_country_code ~ (BR|CN|KP|KR|RU|KZ|UA) ) { | |
return 444; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://codex.wordpress.org/Nginx | |
# Global restrictions configuration file. | |
# Deleted config for .htaccess, robots.txt, favicon restriction | |
# because they are already included in the default | |
# domain.conf created by ispconfig | |
# Block PHP files in uploads, content, and includes directory. | |
location ~* /(?:uploads|files|wp-content|wp-includes)/.*\.php$ { | |
deny all; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_user_agent $bad_agent { | |
default 0; | |
"~*^[Ww]eb[Bb]andit" 1; | |
"~*^Acunetix" 1; | |
"~*^binlar" 1; | |
"~*^BlackWidow" 1; | |
"~^Bolt" 1; | |
"~*^casper" 1; | |
"~*^checkprivacy" 1; | |
"~*^ChinaClaw" 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#add to http {} block | |
map $http_referer $bad_referer { | |
default 0; | |
"~*event-tracking.com" 1; | |
"~*theguardlan.com" 1; | |
"~*free-share-buttons.com" 1; | |
"~*free-social-buttons.com" 1; | |
"~*buy-cheap-online.info" 1; | |
"~*free-social-buttons.com" 1; | |
"~*he-prod" 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /phpmyadmin { | |
root /usr/share/; | |
index index.php index.html index.htm; | |
location ~ ^/phpmyadmin/(.+\.php)$ { | |
try_files $uri =404; | |
root /usr/share/; | |
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; | |
fastcgi_param HTTPS on; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $request_filename; |
NewerOlder