Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the methods of intercepting and querying Wechat domain names?

Shulou Source: shulou.com Published: 2022-06-02 13:34:33 11月28日 Update

This article mainly explains "what are the methods of intercepting and querying Wechat domain names?", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn what are the methods of intercepting and querying Wechat domain names.

API API query

1. Http://www.qqdwz.cn/ymjc?url_long=http://www.baidu.com

2. Http://www.maoapi.cn/wxymjc?url_long=http://www.baidu.com

API description:

Www.baidu.com can be replaced with a domain name link that needs to be tested. Here, the detected object can be a domain name, a link, or a link with parameters.

Note:

When ① calls the api API, you only need to enter the long URL that needs to be compressed after the URL=.

The ② interface supports the url parameter. When the & symbol appears in the url, use% 26 instead (or use the url encoding format), otherwise the parameter may be lost.

③ must start with http (s): / / when filling in url, otherwise it may cause the test to fail.

Online query:

1. Http://www.qqdwz.cn/ymjc

2. Http://www.maoapi.cn/jiance

Return description:

{"status": 1, "msg": "Domain name normal"} {"status": 0, "msg": "Domain name blocked"} call code

Demo of PHP call:

$url = 'http://www.baidu.com';$api_url =' http://www.maoapi.cn/wxymjc?url_long?url_long=http://www.baidu.com;$short_url = file_get_contents ($api_url); echo $short_url

Demo of JAVA call:

Public static void main (String path []) throws Exception {URL u = new URL ("http://www.maoapi.cn/wxymjc?url_long?url_long=http://www.baidu.com");InputStream in = u.openStream (); ByteArrayOutputStream out = new ByteArrayOutputStream (); try {byte buf [] = new byte [1024]; int read = 0X while (read = in .read (buf)) > 0) {out.write (buf, 0, read);}} finally {if (in! = null) {in .close () }} byte b [] = out.toByteArray (); System.out.println (new String (b, "utf-8"));}

Demo of Python call:

Import urllib, urllib2, syshost = 'http://www.maoapi.cn'path =' / wxymjc?url_long'method = 'GET'querys =' url_long=http%3A%2F%2Fwww.baidu.com'bodys = {} url = host + path +'?'+ querysrequest = urllib2.Request (url) response = urllib2.urlopen (request) content = response.read () if (content): print (content) so far, I believe you have a better understanding of "what are the methods of intercepting and querying Wechat domain names" You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Domain name query method interface parameter link detection demonstration content learning practical deeper matter code interest just online query practicality actual object Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Linux macOS Shulou Tech Info Microsoft