16 articles
Monday, Feb 5, 2024
写入指定IP数据到指定文件到简单shell脚本 !/bin/bash cloudflare ip cfipv4=$curl https://www.cloudflare.com/ips-v4 | tr '\n' cfipv6=$curl https://www.cloudflare.com/ip...
Thursday, Nov 30, 2023
IPv4及IPv6的CIDR地址具体IP数: 计算公式方法 > IPv4: 2^64-x-3 > IPv6:2^128-x-3 undefined IPv4: /321 /312 /304 /298 /2816 /2732 /2664 /25128 /24256 /23512 /221024 /...
Wednesday, Oct 26, 2022
在ubuntu和Debian系统上实现单网卡绑定多个IP v6地址的方法 单网卡绑定多个IPv6的需求,可以适用于不同的域名,比如在nginx绑定某个独立的IPv6地址 前提就先要把多个对立IPv6地址绑定到单网卡上。 当然也可以适用虚拟网卡,本文只介绍使用单网卡绑定多个IPv6地址的方法. 下面是...
Thursday, Jun 9, 2022
Configure nginx to only allow cloudflare's IP to connect to the server shell script !/bin/bash set -e cfips { echo " https://www.cloudflare.com/ips"...
Wednesday, Oct 13, 2021
两种自动添加 ip 白名单到cloudflare的脚本, !/bin/bash 填Cloudflare Email邮箱 CFEMAIL="your mail" 填Cloudflare API key CFAPIKEY="youkey" 填Cloudflare Zones ID 域名对应的ID ...
Monday, Sep 6, 2021
使用 IPinfo,您可以确定用户的位置、定制他们的体验、防止欺诈、确保合规性等等。 地理位置 精确定位您的用户的确切位置,无论他们身在何处。 ASN - ISP 或网络 找出您的访问者使用的互联网服务提供商。 公司 确定使用 IP 地址的人的公司名称和域。 IP 范围 查找分配给公司的所有...
Sunday, Apr 12, 2020
解决路由器ip变动的方法 内网有一台NAS,但是不是很经常开,不需要的时候就会关机, 包括PC,路由器,交换机。,全部电源都关闭 这样就会出现一个问题就是, 重新启动网络和NAS时,NAS的IP地址就会变 要进入路由器重新查找NAS的IP地址或者使用NAS的专用客户端搜索 很麻烦的不说。。。解决这个...
Friday, Apr 3, 2020
If you want to further improve the security of the website, for example, to prevent the website from being collected more effectively, You can try to ...
Nginx: emerg unknown directive" setrealipfrom " appears because nginx is missing the realip module Add the realip module to compile again. . . ./confi...
如果想进一步提高网站的安全性,比如比较有效的防止网站被采集, 可以尝试把服务器只能为来自cloudflare 的Ip 链接 其实这种方法很简单,不过国外已经有人写好了脚本。。。 这里就用该脚本配置nginx只能来自cloudflare的IP链接 编辑Nginx.conf文件载入cloudflare....