04
2024
09
17:33:04

PHP版whois查询源码分享

程序来源于hostloc,版权所属原作者,博客去掉了一部分广告页面,仅作分享,并未修改核心js文件。

如何安装?


复制
下载-上传宝塔-解压-配置伪静态,完成。

下载:

whois.zip

伪静态规则:

Nginx
复制
if (-f $request_filename) {break;}rewrite ^/(.*)$ /index.php?domain=$1 last;
Apache 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([/]*)$ /index.php?domain=$1 [L,QSA]
</IfModule>


如果不是根目录,红色这里 / 要改成具体的网页地址+?domain=, 否则会跳转到根目录

<script type="text/javascript">

       function aa() {

            var domain = document.getElementById('domain').value;

            if(!domain) {

                alert('请输入域名');

            } else{

                window.location = 'https://www.kinber.cn/tools/whois/index.php?domain=' + domain;

            }

        }

  </script>




演示站点:

https://hqyman.cn/tools/whois/   本站演示地址

https://www.kinber.cn/tools/whois/  本站演示地址

https://whois.cikeblog.com  修改代码的大神网站




推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

本文链接:https://hqyman.cn/post/7906.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏





休息一下~~


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: