64 lines
2.4 KiB
HTML
64 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
|
|
<link href="/jscss/style.css" rel="stylesheet" type="text/css" />
|
|
<script type="text/javascript" charset="utf-8" src="/jscss/theme.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="row" style="background:#eeeeee;">
|
|
<div class="ciy-form col-24 col-sm-24">
|
|
<label>HTTP头</label>
|
|
<div><textarea name="header" style="height:25em;">
|
|
HTTP_CF_CONNECTING_IP=2d61:0db8:85a3:0000:0000:8a2e:0370:7334
|
|
HTTP_TRUE_CLIENT_IP=200.89.13.45
|
|
HTTP_X_FORWARDED_FOR=203.0.113.45:345, 70.41.3.18, 150.172.238.178
|
|
HTTP_FORWARDED=for="[2531:db8::1]:443";proto=https
|
|
HTTP_FORWARDED=for="2531:db8::2";proto=https
|
|
HTTP_FORWARDED=for=[2531:db8::3];proto=https
|
|
HTTP_FORWARDED=for=2531:db8::4;proto=https
|
|
HTTP_FORWARDED=for=200.89.13.43:443;proto=https
|
|
HTTP_FORWARDED=for=200.89.13.44,234.54.6.43
|
|
HTTP_FORWARDED=for=200.89.13.45:235,234.54.6.43
|
|
HTTP_FORWARDED_FOR=192.0.2.146, 203.0.113.67
|
|
HTTP_X_FORWARDED=192.0.2.147, 203.0.113.67
|
|
HTTP_X_REAL_IP=192.168.2.148</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="ciy-form col-24 col-sm-24">
|
|
<label></label>
|
|
<div style="flex:none;padding-right:1em;">
|
|
<button type="button" class="btn" onclick="formsubmit(this);">模拟</button>
|
|
<button type="button" class="btn" onclick="getip();">实际IP</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="id_result" style="font-size: 2em;padding: 1em;"></div>
|
|
|
|
<script type="text/javascript" src="/jscss/ciy.js"></script>
|
|
<script type="text/javascript" src="/jscss/ciycmp.js"></script>
|
|
<script type="text/javascript" src="/ud/dict/ciy_arearpc.js"></script>
|
|
<script type="text/javascript" src="../common.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
'use strict';
|
|
function formsubmit(dom) {
|
|
var params = ciyfn.getform(dom);
|
|
ciyfn.callfunc("realip", params, function (json) {
|
|
$5('#id_result').html(json.ip);
|
|
});
|
|
}
|
|
function getip(dom) {
|
|
ciyfn.callfunc("getip", {}, function (json) {
|
|
$5('#id_result').html(json.ip);
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
|
|
</html> |