arsonik/secret-redirect
最新稳定版本:v2.1.2
Composer 安装命令:
composer require arsonik/secret-redirect
包简介
hidding ad redirection
README 文档
README
A discrete way of forwarding client request.
Installation
composer require arsonik/secret-redirect
require './vendor/autoload.php';
Usage
Forward client with the Location header (302 status)
$secret = new SecretRedirect(); $secret->cookiePrefix = 'm2sa_'; $secret->redirect('http://ads-server.tld/campaign?id=xxxx', 'http://fallback.tld/azz'); exit;
Returns Location header url
$secret = new SecretRedirect(); $secret->cookiePrefix = 'm2sa_'; $url = $secret->location('http://ads-server.tld/campaign?id=xxxx', 'http://fallback.tld/azz');
Returns destination page content
$secret = new SecretRedirect(); $secret->cookiePrefix = 'm2sa_'; $content = $secret->content('http://ads-server.tld/campaign?id=xxxx');
Optional configuration
SecretRedirect class parameters
cookiePrefixStringforwardCookiesBooleanserverUsesXHttpForwardedForBooleantimeoutFloat
统计信息
- 总下载量: 10.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-21