youzan / ngx_http_html_sanitize_module Goto Github PK
View Code? Open in Web Editor NEWIt's a nginx http module to sanitize HTML5 with whitelisted elements, whitelisted attributes and whitelisted CSS property
License: Apache License 2.0
It's a nginx http module to sanitize HTML5 with whitelisted elements, whitelisted attributes and whitelisted CSS property
License: Apache License 2.0
有个需求是通过ipip获取ip对应的位置信息记录到日志 以便后续分析
类似 http://nginx.org/en/docs/http/ngx_http_geoip_module.html 中的
$geoip_area_code
telephone area code (US only).
This variable may contain outdated information since the corresponding database field is deprecated.
$geoip_city_continent_code
two-letter continent code, for example, “EU”, “NA”.
$geoip_city_country_code
two-letter country code, for example, “RU”, “US”.
$geoip_city_country_code3
three-letter country code, for example, “RUS”, “USA”.
$geoip_city_country_name
country name, for example, “Russian Federation”, “United States”.
能否开新的分支把解析出来的:
"**", // 国家
"天津", // 省会或直辖市(国内)
"天津", // 地区或城市 (国内)
"", // 学校或单位 (国内)
"鹏博士", // 运营商字段(只有购买了带有运营商版本的数据库才会有)
"39.128399", // 纬度 (每日版本提供)
"117.185112", // 经度 (每日版本提供)
"Asia/Shanghai", // 时区一, 可能不存在 (每日版本提供)
"UTC+8", // 时区二, 可能不存在 (每日版本提供)
"120000", // **行政区划代码 (每日版本提供)
"86", // 国际电话代码 (每日版本提供)
"CN", // 国家二位代码 (每日版本提供)
"AP" // 世界大洲代码 (每日版本提供)
这几个变成类似上面的可以记录到access_log的变量呢?
谢谢啦
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.