山滚云

Google�务被“��wordpress站长该如何应对?

SEO行业资讯 15869℃ 喜欢 (0)

刚 �看到�大网站都在说Google的所有�务都被�了。邵连虎刚�用百度查了下谷。�现谷歌网站确实也打�开了。而且�说最倒霉的应该是我们这些 wordpress站长了。到底是什么原因呢,下�邵连虎就给大家详细的介�下。�过大家也��担心,毕竟什么都有解决的办法,�使真的�行大�了��� 个网站是了。,一切顺其自然�。

google图标

第一部分:谷歌�务器已由香港转到美国

从5月27�左�开始,谷歌(Google)在�的几乎所有的�务都处于无法使用的状�,谷歌官网域�Google.com�谷歌香港Google.com.hk所有�务都打�开。ping出�的IP�显示为“美国�,也就是说谷歌香港的�务器,已�由香港转移至美国,所以链接实际会很长,甚至断断续续出现请求超时的情况。

第二部分:谷歌�盟的站长们�倒霉了

而Google Adsense打�开,�怕�谷歌�盟的站长也�倒霉了。虽然在新闻上没有�索到任何相关内容,但业内�传Google�务已�在大陆被全线�蔽,除�索 引擎�到�蔽之外,谷歌的邮箱(Gmail)�日历(Calendar)�翻译(Translate)�地图(Maps)�分�(Analytics)和 Google AdSense等产�也�到了影�。

第三部分:最倒霉的�数wordpress站长朋�了

看 到别人都��客了,邵连虎也�了一个�客。用心��了�年多的时间,我的邵连虎�客确实也�历了�少风雨,从一些�温�热的网站慢慢地�的有人气了。我也 慢慢的喜欢写�客了 。�是�到这个消�我的心都快碎了。为什么我刚接触SEO的时候,SEO就�好使了。现在刚写�客�久谷歌的�务�被�了。我想我是个倒霉的人,�过我也 相信一切都有解决的办法。�说是wordpress的字体加载�出�,导致�客打开速度缓慢,甚至打�开。

第四部分:下�给大家总结了几�解决的办法:

方法一:360网站�士的解决方案:

修改方法如下:

打开wordpress代�中的文件wp-includes/script-loader.php文件,�索:fonts.googleapis.com找到这行代�:

$open_sans_font_url = “//fonts.googleapis.com/css?family1=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets�;

把fonts.googleapis.com替�为fonts.useso.com

修改完�存,�次刷新,大家就�以�现,自己的网站速度已�比以�快了很多,几乎瞬间就�以拿到Google字体了。原因就是本�需�从美国�务器�能拿到的google字体,现在已��布360全国的机房了。

方法二:functions过滤法:

主题中的functions.php文末尾?>之�加上以下代�之一。��峰测试这�方法�对��有效����,因为仅修改主题代�。
代�1:

1
2
3
4
5
6
7
8
9
10
11
12
// Remove Open Sans that WP adds from frontend
if (!function_exists(‘remove_wp_open_sans’)) :
function remove_wp_open_sans() {
wp_deregister_style( ‘open-sans’ );
wp_register_style( ‘open-sans’, false );
}
add_action(‘wp_enqueue_scripts’, ‘remove_wp_open_sans’);// Uncomment below to remove from admin
// add_action(‘admin_enqueue_scripts’, ‘remove_wp_open_sans’);endif;

代�2:

1
2
3
4
5
6
function remove_open_sans() {
wp_deregister_style( ‘open-sans’ );
wp_register_style( ‘open-sans’, false );
wp_enqueue_style(‘open-sans’,”);
}
add_action( ‘init’, ‘remove_open_sans’ );

方法三:�件法:

此方法对��和���有去除效果,优点是使用方便,�想使用谷歌字体,直接�用此�件。
1,Remove Open Sans font Link from WP core。下载:http://wordpress.org/plugins/remove-open-sans-font-from-wp-core/
2,Disable Google Fonts。下载:http://wordpress.org/plugins/disable-google-fonts/

方法四:GoAgent代�法:

如果你在使用GoAgent系统代�,�以在SwitchySharp或者AutoProxy选项里添加切�规则:

规则�称:google-fonts

URL 模�:*://*.googleusercontent.com/*

情景模�:GoAgent

方法五:wp默认主题过滤

如果是用第三方主题,使用上�代�已�足够,若使用默认的主题,还会加载一些其他字体,完整的代�如下(包�Open Sans):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class Disable_Google_Fonts {
public function __construct() {
add_filter( ‘gettext_with_context’, array( $this, ‘disable_open_sans’             ), 888, 4 );
add_action( ‘after_setup_theme’,    array( $this, ‘register_theme_fonts_disabler’ ), 1      );
}
public function disable_open_sans( $translations, $text, $context, $domain ) {
if ( ‘Open Sans font: on or off’ == $context && ‘on’ == $text ) {
$translations = ‘off’;
}
return $translations;
}
public function disable_lato( $translations, $text, $context, $domain ) {
if ( ‘Lato font: on or off’ == $context && ‘on’ == $text ) {
$translations = ‘off’;
}
return $translations;
}
public function disable_source_sans_pro( $translations, $text, $context, $domain ) {
if ( ‘Source Sans Pro font: on or off’ == $context && ‘on’ == $text ) {
$translations = ‘off’;
}
return $translations;
}
public function disable_bitter( $translations, $text, $context, $domain ) {
if ( ‘Bitter font: on or off’ == $context && ‘on’ == $text ) {
$translations = ‘off’;
}
return $translations;
}
public function register_theme_fonts_disabler() {
$template = get_template();
switch ( $template ) {
case ‘twentyfourteen’ :
add_filter( ‘gettext_with_context’, array( $this, ‘disable_lato’            ), 888, 4 );
break;
case ‘twentythirteen’ :
add_filter( ‘gettext_with_context’, array( $this, ‘disable_source_sans_pro’ ), 888, 4 );
add_filter( ‘gettext_with_context’, array( $this, ‘disable_bitter’          ), 888, 4 );
break;
}
}
}
$disable_google_fonts = new Disable_Google_Fonts;

本地加载法:

对于喜欢折腾的朋�,�以使用下载字体到本地上传到主机中,然�使用下�代��新加载;

 

正常访问Google�务的解决方案:

这 个方法�包时效,没准过两天就�行了,大家�以临时修改host,打开C:\Windows\System32\drivers\etc,解� Google到203.208.46.212就�以了(203.208.46.208 或者203.208.46.134这两个ip目�还能用,当然也�以直接用IP访问).

谷歌备用IP于2014年6月10日正�失效。

谷歌备用IP失效

�有好消�告诉大家,于2014年6月20左�开始,上海SEO蜗牛�客于很多人之��现谷哥虽然香港与美国都访问�了了,但是谷歌的粉��了一个站:谷粉��,�以代替谷歌�索网页与图片,�索结果近似于原香港�务器,值得�赖。地�:

谷粉��地�:http://www.gfsoso.com/

本文由:连邵虎�客与blhere�客��,由上海SEO蜗牛�客整��布。

转载请注明:⎛蜗牛SEO⎞ » Google�务被“��wordpress站长该如何应对?

1�阿里云�务器�数�库�对象存储OSS月付,优惠5-8折(新�用户��)~
2�阿里云�务器�数�库�对象存储OSS年付/多年付,优惠5-8折(�新用户)~
3�腾讯云�务器�数�库�对象存储OSS月付,优惠5-8折(新�用户��)~
4�腾讯云�务器�数�库�对象存储OSS年付/多年付,优惠5-8.5折(新�用户��)~
5��为云�务器�数�库�对象存储OSS,优惠购买5-8折~
6�景安网络快云�务器�快云VPS最低2折起优惠购买~
7�天翼云�务器�数�库�对象存储OSS,优惠购买2折起~
8��山云�务器�数�库�对象存储OSS,优惠购买2折起~
1�阿里云最新活动页,云�务器79元/年起~>>
2�腾讯云最新活动页,云�务器68元/年起~>>
3��为云最新活动页,云�务器35元/年起~>>
4�香港�创轻云�务器218元一年,436元3年起~>>
5�山滚云香港虚拟主机50元一年,100元三年起~>>
6�山滚云独立IP虚拟主机118元一年起~>>

山滚网络是国内领先的网络�务商,有丰富的客户�务�验,我们有专业的云�务器代���类云计算产��网站建设�网站优化�团队,为您�供优质的�务,您的满�是我们�懈的追求。

城市分站:上海SEO北京SEO广州SEO深圳SEO深圳建站公�武汉SEO�庆SEO�都SEO

业务范围:阿里云6折起,腾讯云å�Žä¸ºäº‘6折起,天翼云ç�«å±±äº‘景安网络2折起,深圳建站公å�¸    微信:ganshangwoniu    QQ:549233124    业务咨询热线:177-2050-9380

   Copyright © 2008-2024 山滚网络版æ�ƒæ‰€æœ‰   

QQ在线咨询
上海SEO山滚网络微信�