参数输入是在某个代码后输入一个参数或一串参数,为该代码添加更多功能。 要获取自定义IP,您应该遵循参数输入的基本规则。 我们支持在您的用户名后输入各种参数来实现某些目标,包括客户、国家、地区、会话和时间。
| 参数 | 描述 |
|---|---|
| customer | 身份验证帐户,必填字段 |
| country | 国家/地区、默认全球组合、必填字段,默认随机 |
| region | 地区,选择指定国家后可选,默认随机 |
| sid/lsid | (粘性IP),用于保持出口IP不变,sid值限制不超过16位,大小写字母组合 |
| time | 过期时间,定义导出IP保持时间,会话存在时有效,限制为1~240个整数,单位分钟 |
您可以在用户名后添加“-”和某些参数来更改代理配置。
例如:
如果您的会话类型是默认的,您将得到如下代码:
customer-xxx:[email protected]:8100
添加参数后,您将得到下面的一段代码。也就是获取一个来自美国加州的粘性IP,我们设置的粘性时间是10分钟。
customer-xxx-country-US-region-California-sid-pgpqssqbzag8ws8-time-10:[email protected]:8100
在Username后面设置一个参数“country-US”的CURL代码是设置你的IP所在的国家:
curl -U "customer-xxx-country-US:xxxx" -x proxy.momoproxy.com:8100 https://ipinfo.io
Username后面的“country-US”和“region-Caliafornia”设置参数的CURL代码是设置您的IP所在的指定州:
curl -U "customer-xxx-country-US-region-Indiana:xxxx" -x proxy.momoproxy.com:8100 https://ipinfo.io
设置“session-xxxxxxx”和“time-x”参数的CURL代码是为了保持一个IP一段时间:
curl -U “customer-xxx-sid-blsfjjsl-time-3:xxxx” -x proxy.momoproxy.com:8100 https://ipinfo.io # 3minutes
设置所有参数的CURL代码是在一定时间内从某个城市获取一个粘性IP:
curl -U “customer-xxx-country-US-region-California-sid-blsfjjsl-time-3:xxxx” -x proxy.momoproxy.com:8100 https://ipinfo.io