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.5k↓50%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 1mo ago

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 75% 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

3037d ago

Major Versions

v1.0.0 → v2.0.02017-10-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ae72ae4e4833104579245d00170472c0aab7363f19a0df1d3a6022afd461591?d=identicon)[arsonik](/maintainers/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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

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

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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