Create an ip info WebPage with a style.css and an index.php

Overview

my-ip-info

Create an ip info Page with a style.css and an index.php file.

支持

  • 判断浏览器语言,非中文显示为英文。
  • curl指令返回ip地址 国家 城市
  • 在地图上显示位置

前提条件

  • 一个已经注册了域名并在Cloudflare进行了DNS解析的网站。
  • 注册了百度地图的开发者账号!点击注册

教程

  • 打包下载文件,将文件放在网站的根目录。
  • 注册百度地图开发者账号将自己的AK替换index中的149行 ENTERYOURS
  • 去Cloudflare进行域名解析并开启Proxy(小云朵)。
  • 在DNS下方规则选项卡中修改请求头的转换规则,创建新的规则并勾选自定义筛选表达式。设置字段为主机名,运算符为等于,值为网站地址。

设置动态IP信息:

  • 设置动态IP值:ip,值为ip.src
  • 设置动态IP-ASN:ip-asn,值为ip.geoip.asnum
  • 设置动态IP-City:ip-city,值为ip.src.city
  • 设置动态IP-Country:ip-country,值为ip.geoip.country
  • 设置动态IP-HTTP:ip-http,值为http.request.version
  • 设置动态IP-Lat:ip-lat,值为ip.src.lat
  • 设置动态IP-Lon:ip-lon,值为ip.src.lon
  • 设置动态IP-Threat:ip-threat,值为cf.threat_score
  • 设置动态IP-Time:ip-time,值为ip.src.timezone.name
  • 设置动态IP-UA:ip-ua,值为http.user_agent
  • 设置动态IP-Zip:ip-zip,值为ip.src.postal_code

保存设置。

完成!通过按照以上步骤进行操作,您将创建一个能够显示访问者IP信息的网页。

参考

Hostloc 嘉树 Hostloc 超级无敌小马甲 ChatGPT

You might also like...
Laravel Pint is an opinionated PHP code style fixer for minimalists.
Laravel Pint is an opinionated PHP code style fixer for minimalists.

Laravel Pint is an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.

The simplest way to create a dynamic sitemap for your self-coded website which you have made by using PHP/HTML/CSS/Js etc... Scripts.

Sitemap_index.xml The simplest way to create a dynamic sitemap for your self-coded website which you have made by using PHP/HTML/CSS/Js etc... Scripts

Provides an object-oriented API to query in-memory collections in a SQL-style.

POQ - PHP Object Query Install composer require alexandre-daubois/poq 1.0.0-beta2 That's it, ready to go! 🎉 Usage Here is the set of data we're going

Laravel style FormRequests for Symfony; inspired by adamsafr/form-request-bundle

Somnambulist Form Request Bundle An implementation of form requests from Laravel for Symfony based on the original work by Adam Sapraliev. Requirement

Greyhole uses Samba to create a storage pool of all your available hard drives, and allows you to create redundant copies of the files you store.

Greyhole Greyhole is an application that uses Samba to create a storage pool of all your available hard drives (whatever their size, however they're c

Aplicación de chat usando HTML, CSS, PHP, JS and MySQL.

SYSTEMSGT Codigo fuente de aplicación CHAT - SYSTEMSGT Lenguajes HTML CSS PHP JS MySQL Pre-requisitos 📋 Para poder utilizar esta aplicación necesitas

The main website source code based on php , html/css/js and an independent db system using xml/json.
The main website source code based on php , html/css/js and an independent db system using xml/json.

jsm33t.com Well umm, a neat website LIVE SITE » View Demo · Report Bug · Request a feature About The Project Desc.. Built Using Php UI Frameworks Boot

Online Food Delivery Website created using HTML, CSS, PHP and MySQL which delivers food at your doorstep on Cash-On-Delivery.

Food-Delivery-Website Online Food Delivery Website created using HTML, CSS, PHP and MySQL which delivers food at your doorstep on Cash-On-Delivery. Th

A Simple MVC PHP Framework, integrated with lot of features such as Session, Cookies, Migrations, Database, Factories, Seeding, Bootstrap and Tailwind CSS

Navite A Simple MVC PHP Framework, integrated with lot of features such as Session, Cookies, Migrations, Database, Factories, Seeding, Bootstrap and T

DiscordLookup | Get more out of Discord with Discord Lookup! Snowflake Decoder, Guild List with Stats, Invite Info and more...

DiscordLookup Get more out of Discord with Discord Lookup! Snowflake Decoder, Guild List with Stats, Invite Info and more... Website Getting Help Tool

Felix 69 Dec 23, 2022
Code de la nuit de l'info 2021

NuitDeInfo2021 ⚠️ Warning: Be very careful here! documetation utilisation git soit par terminal ou dans un IDE (Atom, PhpStorm) ou GitHub Desktop Star

null 0 Sep 20, 2022
Repo pour la Nuit de l'Info 2021, équipe Passage Python

Passage Python Repo pour la Nuit de l'Info 2021, équipe Passage Python Les membres de l'équipe sont : Florian Duzes, FloDarPie Theo Cavailles, igneefl

Florian Duzes 3 Dec 3, 2021
Installed composer packages info

PackageInfo This package was highly inspired from ocramius/package-versions I needed some methods to read data from the composer.lock file fast...this

Martin Keckeis 7 Jun 2, 2022
Laravel-Weather let you get weather info from qweather.com

Laravel Weather Weather info system for Laravel. Installing composer require layoute/laravel-weather -vvv Configuration and Migrations php artisan ven

Layoute 1 May 26, 2022
Tailwind UI is a Tailwind CSS component library designed by the authors of Tailwind CSS

Tailwind UI is a Tailwind CSS component library designed by the authors of Tailwind CSS. This is a Winter CMS plugin that provides a custom, TailwindUI-based skin for the backend.

Winter CMS 9 Dec 19, 2022
A simple twitter-feed-style RSS aggregator written in PHP, Laravel, Inertia.js, Tailwind and Vue.js

RSS A simple, opinionated, RSS feed aggregator. Features The following features are built into the application: Supports RSS and ATOM formats. Regular

Dan Brown 257 Dec 24, 2022
Learning about - Basic HTML & CSS, JSON, XML, Session & Cookies, CRUD Operations in Php using MySQL and Create MVC from scratch

This Project is based on course CSC 3215. Learning about - Basic HTML & CSS, JSON, XML, Session & Cookies, CRUD Operations in Php using MySQL and Create MVC (Model–View–Controller) from scratch. Just learning about web technologies, Not focusing on UI (Bootstrap or other 3rd-Party UI libraries or frameworks).

Alvi Hasan 5 Sep 21, 2022
Silverstripe-tinytidy - Control which styles are available in TinyMCE's style dropdown menu and what elements they can be applied to

TinyTidy for SilverStripe This module mainly serves as an example of how to customise the 'styles' dropdown menu in the TinyMCE editor to control whic

Jono Menz 30 Jul 30, 2020
🙈 Code style configuration for `php-cs-fixer` based on PSR-12.

php-code-style Code style configuration for friendsofphp/php-cs-fixer based on PSR-12. Installation Step 1 of 3 Install gomzyakov/php-code-style via c

Alexander Gomzyakov 5 Nov 27, 2022