PHPackages                             mountainguan/ql-plugin-disguise - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. mountainguan/ql-plugin-disguise

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mountainguan/ql-plugin-disguise
===============================

Make a disguise headers for get/post request.

V4.1.0(7y ago)3332MITPHP

Since Dec 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mountainguan/QLPlugin-DisguisePlugin)[ Packagist](https://packagist.org/packages/mountainguan/ql-plugin-disguise)[ RSS](/packages/mountainguan-ql-plugin-disguise/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

QueryList V4 Plugin - DisguisePlugin
====================================

[](#querylist-v4-plugin---disguiseplugin)

Make a disguise header for get/post request.

QueryList V4 插件 - 混淆插件
======================

[](#querylist-v4-插件---混淆插件)

给Post/Get方法加上带有混淆信息的headers。

Installation
============

[](#installation)

```
composer require mountainguan/ql-plugin-disguise

```

API
---

[](#api)

- **disguiseIp($otherArgs,$ip)**: Add custom or random headers -- disguise ip address for QueryList's otherArgs,return **QueryList**
- **disguiseUa($otherArgs,$ua)**: Add custom or random headers -- disguise UserAgent for QueryList's otherArgs,return **QueryList**

Installation options
--------------------

[](#installation-options)

**QueryList::use(DisguisePlugin::class,$opt1,$opt2)**

- **$opt1**:`disguiseIp` function alias.
- **$opt2**:`disguiseUa` function alias.

Usage
-----

[](#usage)

- Installation Plugin

```
use QL\QueryList;
use QL\Ext\DisguisePlugin;

$ql = QueryList::getInstance();
$ql->use(DisguisePlugin::class);
//or Custom function name
$ql->use(DisguisePlugin::class,'disguiseIp','disguiseUa');
```

- Only disguise IP in random way.

```
print_r($ql->disguiseIp()->disguise_headers);
//or custom
print_r($ql->disguiseIp([],'66.248.172.185')->disguise_headers);

```

Out:

```
Array (
	[headers] => Array (
    	[X-Forwarded-For] => 66.248.172.185
        [Proxy-Client-IP] => 66.248.172.185
        [WL-Proxy-Client-IP] => 66.248.172.185
        [HTTP_CLIENT_IP] => 66.248.172.185
        [X-Real-IP] => 66.248.172.185
        )
)

```

- Only disguise UserAgent in random way.

```
print_r($ql->disguiseUa()->disguise_headers);
//or custom
print_r($ql->disguiseUa([],'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11')->disguise_headers);

```

Out:

```
Array
(
	[headers] => Array (
    	[User-Agent] => Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11
        )
)

```

- Using both two functions in random way.

```
print_r($ql->disguiseIp()->disguiseUa()->disguise_headers);

```

Out:

```
Array (
	[headers] => Array (
    	[X-Forwarded-For] => 222.122.96.204
        [Proxy-Client-IP] => 222.122.96.204
        [WL-Proxy-Client-IP] => 222.122.96.204
        [HTTP_CLIENT_IP] => 222.122.96.204
        [X-Real-IP] => 222.122.96.204
        [User-Agent] => Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)
        )
)

```

- Using post/get request's otherArgs param can make more perfect disguise.

```
print_r($ql->disguiseIp(
	array('headers'=>[	'Accept'=>'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
	'Accept-Encoding'=>'gzip, deflate, br',
	'Accept-Language'=>'en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7',
	'Connection'=>'keep-alive'])
    )->disguiseUa()->disguise_headers);

```

Attention: otherArgs param must be like Array('headers'=&gt;\[...\]).

Out:

```
Array (
	[headers] => Array (
    	[Accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
        [Accept-Encoding] => gzip, deflate, br
        [Accept-Language] => en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7
        [Connection] => keep-alive
        [X-Forwarded-For] => 60.169.94.187
        [Proxy-Client-IP] => 60.169.94.187
        [WL-Proxy-Client-IP] => 60.169.94.187
        [HTTP_CLIENT_IP] => 60.169.94.187
        [X-Real-IP] => 60.169.94.187
        [User-Agent] => Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; rv:11.0) like Gecko
        )
)

```

- Supported original get/post methods with disguise.And add support to postJson() method with GHttp.

```
$ql = QueryList::getInstance();
$ql->use(DisguisePlugin::class);
$ql->disguiseIp()->disguiseUa()->get('http://httpbin.org/get',[
		'param1' => 'testvalue',
		'params2' => 'somevalue'
	],[
 	//设置超时时间，单位：秒
		'timeout' => 30,
		'headers' => [
		 'Referer' => 'https://querylist.cc/',
		'Accept'     => 'application/json',
		'X-Foo'      => ['Bar', 'Baz'],
		 'Cookie'    => 'abc=111;xxx=222'
	]
]);
echo $ql->getHtml();die;

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 63% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~187 days

Total

3

Last Release

2739d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2244780603d8f9b84ec0c57cc8772bced7db4ed713655cf6684783d1e0bb1fd0?d=identicon)[mountainguan](/maintainers/mountainguan)

---

Top Contributors

[![jae-jae](https://avatars.githubusercontent.com/u/5620429?v=4)](https://github.com/jae-jae "jae-jae (17 commits)")[![mountainguan](https://avatars.githubusercontent.com/u/2704026?v=4)](https://github.com/mountainguan "mountainguan (6 commits)")[![liesauer](https://avatars.githubusercontent.com/u/8676741?v=4)](https://github.com/liesauer "liesauer (4 commits)")

### Embed Badge

![Health badge](/badges/mountainguan-ql-plugin-disguise/health.svg)

```
[![Health](https://phpackages.com/badges/mountainguan-ql-plugin-disguise/health.svg)](https://phpackages.com/packages/mountainguan-ql-plugin-disguise)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
