PHPackages                             arsonik/secret-redirect - 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. [Security](/categories/security)
4. /
5. arsonik/secret-redirect

ActiveLibrary[Security](/categories/security)

arsonik/secret-redirect
=======================

hidding ad redirection

v2.1.2(8y ago)010.6k↓58.9%1[1 PRs](https://github.com/arsonik/secret-redirect/pulls)MITPHP

Since Sep 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/arsonik/secret-redirect)[ Packagist](https://packagist.org/packages/arsonik/secret-redirect)[ RSS](/packages/arsonik-secret-redirect/feed)WikiDiscussions master Synced yesterday

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

secret-redirect
===============

[](#secret-redirect)

[![Latest Stable Version](https://camo.githubusercontent.com/17dcfcacf1de4bf252da8b0d3aa20fd4288d733ff0d7c619278087c6a62abd8e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6172736f6e696b2f7365637265742d72656469726563742e737667)](https://packagist.org/packages/arsonik/secret-redirect)

A discrete way of forwarding client request.

Installation
------------

[](#installation)

```
composer require arsonik/secret-redirect
```

```
require './vendor/autoload.php';
```

Usage
-----

[](#usage)

### Forward client with the Location header (302 status)

[](#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

[](#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

[](#returns-destination-page-content)

```
$secret = new SecretRedirect();
$secret->cookiePrefix = 'm2sa_';
$content = $secret->content('http://ads-server.tld/campaign?id=xxxx');
```

Optional configuration
----------------------

[](#optional-configuration)

### `SecretRedirect` class parameters

[](#secretredirect-class-parameters)

- `cookiePrefix` String
- `forwardCookies` Boolean
- `serverUsesXHttpForwardedFor` Boolean
- `timeout` Float

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~31 days

Total

5

Last Release

3083d ago

Major Versions

v1.0.0 → v2.0.02017-10-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1333734?v=4)[Florian Morello](/maintainers/arsonik)[@arsonik](https://github.com/arsonik)

---

Top Contributors

[![arsonik](https://avatars.githubusercontent.com/u/1333734?v=4)](https://github.com/arsonik "arsonik (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arsonik-secret-redirect/health.svg)

```
[![Health](https://phpackages.com/badges/arsonik-secret-redirect/health.svg)](https://phpackages.com/packages/arsonik-secret-redirect)
```

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k37](/packages/paragonie-ecc)

PHPackages © 2026

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