对每个网站的请求在plugin文件里面,以当当网为例:

{  "name":


    



















    
    
    
    
    
    
    
        





























    


    
    
    
    





PHP实现手机号、信箱在网上注册信息查阅

WBOY
Release: 2016-06-13 12:16:53
Original
1276 people have browsed it

PHP实现手机号、邮箱在网上注册信息查阅

该项目的地址
https://github.com/ChenZhongPu/checkReg

检测一个邮箱或手机号在互联网上的注册情况

部署在 新浪云服务器地址:checkReg
http://checkreg.sinaapp.com/

比如输入 110.qq.com。(据说是马化腾的邮箱)

demo

对每个网站的请求在plugin文件里面,以当当网为例:

<code class=" hljs json">{  "<span class="hljs-attribute">name</span>":<span class="hljs-value"><span class="hljs-string">"当当"</span></span>,  "<span class="hljs-attribute">date</span>":<span class="hljs-value"><span class="hljs-string">"2004"</span></span>,  "<span class="hljs-attribute">scale</span>":<span class="hljs-value"><span class="hljs-string">"千万"</span></span>,  "<span class="hljs-attribute">description</span>":<span class="hljs-value"><span class="hljs-string">"当当网(NYSE:DANG)是北京当当网信息技术有限公司营运的一家中文购物网站。"</span></span>,  "<span class="hljs-attribute">url</span>":<span class="hljs-value"><span class="hljs-string">"www.dangdang.com"</span></span>,  "<span class="hljs-attribute">icon</span>":<span class="hljs-value"><span class="hljs-string">"https://login.dangdang.com/images/ddnewhead_logo.gif"</span></span>,  "<span class="hljs-attribute">method</span>":<span class="hljs-value"><span class="hljs-string">"post"</span></span>,  "<span class="hljs-attribute">request</span>":<span class="hljs-value">{    "<span class="hljs-attribute">mailUrl</span>":<span class="hljs-value"><span class="hljs-string">"https://login.dangdang.com/p/email_checker.php"</span></span>,    "<span class="hljs-attribute">phoneUrl</span>":<span class="hljs-value"><span class="hljs-string">"https://login.dangdang.com/p/mobile_checker.php"</span>  </span>}</span>,  "<span class="hljs-attribute">postField</span>":<span class="hljs-value">{    "<span class="hljs-attribute">mailField</span>":<span class="hljs-value"><span class="hljs-string">"email"</span></span>,    "<span class="hljs-attribute">phoneField</span>":<span class="hljs-value"><span class="hljs-string">"mobile"</span>  </span>}</span>,  "<span class="hljs-attribute">yesCode</span>":<span class="hljs-value">{    "<span class="hljs-attribute">mailCode</span>":<span class="hljs-value"><span class="hljs-string">"true"</span></span>,    "<span class="hljs-attribute">phoneCode</span>":<span class="hljs-value"><span class="hljs-string">"true"</span>  </span>}</span>}</code>
Copy after login

上面的JSON文件最重要的是request,postFieldyesCode。分别表示:验证邮箱或手机的URL请求地址,POST请求(如果是)的字段,如果已注册的返回字符串。

对于返回较长的,例如百合网,我们只取前面包含code部分的:

<code class=" hljs 1c">  <span class="hljs-string">"yesCode"</span>:{    <span class="hljs-string">"mailCode"</span>:<span class="hljs-string">"{\"</span>state\<span class="hljs-string">":0,"</span>,    <span class="hljs-string">"phoneCode"</span>:<span class="hljs-string">"{\"</span>state\<span class="hljs-string">":0,"</span>  }</code>
Copy after login

但你可以选择别的处理方式,然后在代理里修改。

目前只纳入了360,当当,百合网,A站,CSDN,迅雷等几个网站,欢迎大家Folk本项目并提交或修改plugins里面的json文件。

上面JSON文件的request等是在各网站的注册页面捕获的,但有些网站处理起来稍显麻烦。比如,360现在只允许手机注册,所有我们没有收纳他的有邮箱检测方式。对于这些问题,后期将慢慢处理。

最后,特别感谢 Sreg。

由于网页使用了谷歌字体,如果你所在的网络环境不能翻墙,可能请求时间较长且UI效果不佳。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template