最新消息:

BLOCK ZH nginx

Server and VPS admin 216浏览

1-nginx host confige

if ($http_accept_language ~* ^zh) { return 403;}

restart

2- JS code:

<script type=”text/javascript”>
if (navigator.language)
var language = navigator.language;
else
var language = navigator.browserLanguage;
if(language.indexOf(‘zh’) > -1)
document.location.href = ‘403-Forbidden.html’;
</script>

 

转载请注明:shiguanjun » BLOCK ZH nginx