Jump to content

How do add a module to resist some language of browse


bruin

Recommended Posts

if the language of the browse is japanese , my shop will auto redirect a 404 or error page.

 for example:

<?php
	$client_sys_language = getenv("HTTP_ACCEPT_LANGUAGE");
	if (preg_match ("/^en-us/i",$client_sys_language)) {
		echo "<H1>Error!</H1><HR>Your Request page have not found.Please check it again!<P><P>Additionally, A 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.";
	exit;
}
?>
Link to comment
Share on other sites

×
×
  • Create New...