wordpress建站

外貿網站屏蔽中文瀏覽器用戶

外貿網站屏蔽中文瀏覽器用戶

[av_one_full first min_height=” vertical_alignment=” space=” custom_margin=” margin='0px' link=” linktarget=” link_hover=” padding='0px' border=” border_color=” radius='0px' background='bg_color' background_color=” background_gradient_color1=” background_gradient_color2=” background_gradient_direction='vertical' src=” background_position='top left' background_repeat='no-repeat' animation=” mobile_breaking=” mobile_display=” av_uid='av-2iksxl']
[av_heading heading='外貿網站屏蔽中文瀏覽器用戶' tag='h3′ link_apply=” link=” link_target=” style=” size=” subheading_active=” subheading_size='15' margin=” padding='10' color=” custom_font=” custom_class=” admin_preview_bg=” av-desktop-hide=” av-medium-hide=” av-small-hide=” av-mini-hide=” av-medium-font-size-title=” av-small-font-size-title=” av-mini-font-size-title=” av-medium-font-size=” av-small-font-size=” av-mini-font-size=” av_uid='av-2w4789′][/av_heading]

[av_textblock size=” font_color=” color=” av-medium-font-size=” av-small-font-size=” av-mini-font-size=” av_uid='av-jo5sanac' admin_preview_bg=”]
外貿網站屏蔽中文瀏覽器用戶外貿網站經常怕同行看自己的網站,需要屏蔽掉同行,除了屏蔽指定IP外,我們可以指定瀏覽器語言屏蔽掉所有中文的用戶

屏蔽中國IP:有個不好的地方就是萬一客戶來中國了,也看不了,必需要VPN

以下代碼可以屏蔽掉所有中文瀏覽器語言的用戶,自動跳轉到指定的網址,請修改https://5566.site/ComingSoon.html這個網址為您的,不過個人覺得這樣並不太友好,我們可以上傳一個ComingSoon.html簡單靜態頁面到根目錄(這個頁面自己寫)。讓他跳轉到這個頁面上。

最後,使用方法如下:

代碼改好了,放到主題的統計代碼處,或者寫到主題footer.php下,整站訪問任意頁面都會執行跳轉

ComingSoon.html 放到根目錄下,由於是靜態的,不受代碼影響。

如需要ComingSoon.html 這個頁面文件,請留言。
[/av_textblock]
[/av_one_full]

[av_one_full first min_height=” vertical_alignment='av-align-top' space=” margin='0px' margin_sync='true' link=” linktarget=” link_hover=” padding='50px' padding_sync='true' border=” border_color=” radius='0px' radius_sync='true' background='bg_color' background_color='#f7f7f7′ background_gradient_color1=” background_gradient_color2=” background_gradient_direction='vertical' src=” attachment=” attachment_size=” background_position='top left' background_repeat='no-repeat' animation=” mobile_breaking=” mobile_display=” av_uid='av-jo5scrh3′]
[av_codeblock wrapper_element=” wrapper_element_attributes=” codeblock_type=” escape_html='aviaTBescape_html' av_uid='av-jo5s6arx']

[/av_codeblock]
[/av_one_full]

發佈留言