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 | |
/** | |
* Changes the default vimeo video page slug. | |
* @return string | |
*/ | |
function dgv_post_type_slug() { | |
return 'videos'; | |
} | |
add_filter('dgv_post_type_slug', 'dgv_post_type_slug'); |
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
# /etc/network/interfaces | |
# Loopback device: | |
auto lo | |
iface lo inet loopback | |
# device: ens18 | |
auto ens18 | |
iface ens18 inet static | |
address <additional IP> | |
netmask 255.255.255.255 |
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 | |
/** | |
* Class MkNumberFormatter | |
*/ | |
class MkNumberFormatter extends NumberFormatter { | |
public function format( $num, $type = null ) { | |
$formatted = parent::format( $num, $type ); | |
if ( 'mk' === $this->getLocale() ) { |
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 | |
/** | |
* Append date to the video title stored in Media > Library | |
* | |
* @param $args | |
* | |
* @return mixed | |
*/ | |
function dgv_before_create_local_video_params_823842831( $args ) { |
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 | |
/** | |
* Samples/Snippets to extend functionality of IP Location Block | |
* | |
* @package IP_Location_Block | |
* @author tokkonopapa <tokkonopapa@yahoo.com> | |
* @license GPL-3.0 | |
* @link https://iplocationblock.com/ | |
* @copyright 2013-2019 tokkonopapa | |
*/ |
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
{ | |
"ip_geo_block_settings[version]": "3.0.0", | |
"ip_geo_block_settings[matching_rule]": "0", | |
"ip_geo_block_settings[white_list]": "JP", | |
"ip_geo_block_settings[black_list]": "ZZ", | |
"ip_geo_block_settings[extra_ips][white_list]": "192.0.64.0/18\n69.46.32.0/20", | |
"ip_geo_block_settings[extra_ips][black_list]": "", | |
"ip_geo_block_settings[signature]": "../,/wp-config.php,/passwd\ncurl,wget,eval,base64\nselect:.5,where:.5,union:.5\nload_file:.5,create:.6,password:.4", | |
"ip_geo_block_settings[response_code]": "403", | |
"ip_geo_block_settings[login_fails]": "5", |
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 | |
/** | |
* Drop-in for IP Location Block custom filters for admin | |
* | |
* This file should be named as `drop-in-admin.php`. | |
* | |
* @package IP_Location_Block | |
* @author darkog <dg@darkog.com> | |
* @license GPL-3.0 | |
* @link https://iplocationblock.com/ |
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 | |
/** | |
* IP Location Block | |
* | |
* A WordPress plugin that blocks undesired access based on geolocation of IP address. | |
* | |
* @package IP_Location_Block | |
* @author Darko Gjorgjijoski <dg@darkog.com> | |
* @license GPL-3.0 | |
* @link https://www.ipgeoblock.com/ |
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 | |
if ( class_exists( 'IP_Location_Block_API', false ) ) : | |
/** | |
* Class for CloudFront | |
* | |
* @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/georestrictions.html | |
* @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#RequestCustomIPAddresses | |
* @see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html#request-custom-headers-behavior |
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 | |
if ( class_exists( 'IP_Location_Block_API', false ) ) : | |
/** | |
* Class for CloudFlare | |
* | |
* @see https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-CloudFlare-handle-HTTP-Request-headers- | |
* @see https://support.cloudflare.com/hc/en-us/articles/200170856-How-do-I-restore-original-visitor-IP-with-vBulletin- | |
* @see https://support.cloudflare.com/hc/en-us/articles/200168236-What-does-CloudFlare-IP-Geolocation-do- |