恐吓式IP地址查看使用教程
评分: +2+x

使用方式代码总览:

[[include :backrooms-to-dv:component:where-are-you
|div-class=内容的div的class名
|div-style=内容的div的style
|ip-location-bf=IP地址前显示文字,默认为“IP地址:”
|ip-location-af=IP地址后显示文字
|geo-location-bf=地理位置前显示文字,默认为“地理位置:”
|geo-location-af=地理位置后显示文字
|html-code-1=文字顶部的HTML代码
|html-code-2=文字底部的HTML代码
]]

简单使用

如果你想简单使用,可以直接使用以下代码:

[[include :backrooms-to-dv:component:where-are-you]]

效果:

修改IP地址及地理位置前缀

可以使用以下代码:

[[include :backrooms-to-dv:component:where-are-you
|ip-location-bf=IP地址前显示文字,默认为“IP地址:”
|ip-location-af=IP地址后显示文字
|geo-location-bf=地理位置前显示文字,默认为“地理位置:”
|geo-location-af=地理位置后显示文字
]]

比方说如果我想要做到这样的效果:

嘿!你的IP地址是XXX,
你家住XXX XXX XXX,速速打钱!

那就可以使用这个代码:

[[include :backrooms-to-dv:component:where-are-you
|ip-location-bf=嘿!你的IP地址是
|ip-location-af=,
|geo-location-bf=你家住
|geo-location-af=,速速打钱!
]]

效果:

文本前HTML代码

这可以在IP地址及地理位置上方及下方写入HTML地址1

[[include :backrooms-to-dv:component:where-are-you
|html-code-1=文字顶部的HTML代码
|html-code-2=文字底部的HTML代码
]]

(终于可以开始恐吓了,可能愚人节能用)

比方说把站点主页变空白假装是访问者炸的()

试试这个代码:

[[include :backrooms-to-dv:component:where-are-you
|html-code-1=<h1 style="text-align: center;">突发紧急情况!</h1><b>
|ip-location-bf=我们的网站被用户炸毁,目前根据对其IP地址追踪,我们已知该用户IP地址为
|ip-location-af=,
|geo-location-bf=通过ip-api.com提供的API进行IP的地址地理位置追踪,我们目前成功定位该炸站用户目前所处地理位置为
|geo-location-af=,已对其及其IP地址进行封闭。
|html-code-2=<h3 style="text-align: center;">正在修复站点中</h3></b>
]]

效果:

修改背景样式

你也许发现这些代码连个背景也没有丑爆了,放主页属实抽象
不过现在你可以输入class或style来修改它的背景了!2

可以修改div内的class值

[[include :backrooms-to-dv:component:where-are-you
|div-class=内容的div的class名
]]

或是直接修改style值

[[include :backrooms-to-dv:component:where-are-you
|div-style=内容的div的style
]]

比方说,地下黑市主页可以用这代码实现警告:3

[[include :backrooms-to-dv:component:where-are-you
|html-code-1=<h1 style="text-align: center;">突发紧急情况!</h1><b>
|ip-location-bf=我们的网站被用户炸毁,目前根据对其IP地址追踪,我们已知该用户IP地址为
|ip-location-af=,
|geo-location-bf=通过ip-api.com提供的API进行IP的地址地理位置追踪,我们目前成功定位该炸站用户目前所处地理位置为
|geo-location-af=,已对其及其IP地址进行封闭。
|html-code-2=<h3 style="text-align: center;">正在修复站点中</h3></b>
|div-style=border:solid 2px #000000; background:#ffffff; padding:5px; margin-bottom: 10px;
]]

效果:

后记

实际上这只是我一个突发奇想而做的

也许你们会发现那个地理地址都是英文,这是因为我用的https://ipapi.co/的API接口4;如果要变中文可能就要去用高德的5

最后,作者信息:H_WH_W

除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution-ShareAlike 3.0 License