11.28 limit a directory to prevent PHP parsingThis section should be used to optimize settings for static file directories or writable directories, and to prevent malicious attacks by restricting resolution/access to improve security.To edit a
This article mainly introduces the example of php useragent version detection. For more information, see
The code is as follows:
Define ('ie', 1 );
Define ('Firefox ', 2 );
Define ('chromi', 3 );
Define ('Opera ', 4 );
Class
This article mainly introduces the PHP detection useragent version of the example, the need for friends can refer to the following Code as follows: <?php define (' IE ', 1); Define (' FIREFOX ', 2); Define (' CHROME ', 3); Define (' OPERA ',
Whether in php or js, userAgent can return some information about the browser. Below I have sorted out some methods to use js to obtain the userAgent string to judge the browser and version.
Mobile phone language version judgment
Use navigator.
To use PHP to implement the UA whitelist, you must be able to match the regular expressions of basically all browsers and major search engine spider UA. This problem may be complicated. let's see if anyone can solve it. To use PHP to implement the
When developing a public account, you need to know that the current browser is a built-in browser. How can this problem be determined? This is only through the browser's UserAgent to determine the development of public accounts, a large part of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.