PHPackages                             craigpotter/laravel-ie-honeypot - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. craigpotter/laravel-ie-honeypot

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

craigpotter/laravel-ie-honeypot
===============================

A small package to capture IE users and recommend they use a modern browser before they hit your site

2.0.0(3y ago)32MITPHPPHP ^8.0.2

Since Apr 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/craigpotter/laravel-ie-honeypot)[ Packagist](https://packagist.org/packages/craigpotter/laravel-ie-honeypot)[ Docs](https://github.com/craigpotter/laravel-ie-honeypot)[ GitHub Sponsors](https://github.com/craigpotter)[ RSS](/packages/craigpotter-laravel-ie-honeypot/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

A small package to capture IE users and redirect them before they hit your site
===============================================================================

[](#a-small-package-to-capture-ie-users-and-redirect-them-before-they-hit-your-site)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1c2be2224a889956f2962844474ffca4eefce24ae1737dd6fd69908e7d332d2a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6372616967706f747465722f6c61726176656c2d69652d686f6e6579706f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/craigpotter/laravel-ie-honeypot)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4a77d53db527cf127b415f3110622b77df553e8da1b2993d83154a789061ab49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6372616967706f747465722f6c61726176656c2d69652d686f6e6579706f742f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/craigpotter/laravel-ie-honeypot/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/dd84cc95d7d6adb7ab2378ec8c624d716175b45e9f41f8903e67707c29d6b76b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6372616967706f747465722f6c61726176656c2d69652d686f6e6579706f742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/craigpotter/laravel-ie-honeypot/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/c5f5ffec10dfbdc19d629e85608d1515537a4e724747ab6b709c6697a303eed7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6372616967706f747465722f6c61726176656c2d69652d686f6e6579706f742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/craigpotter/laravel-ie-honeypot)

Web development should be a progressive journey and let's face it, we all hate Microsoft Internet Explorer. Have you had an issue where users were using IE, getting JS errors and then complaining about how your application is broken? This simple package might be for you then! Laravel IE Honeypot detects requests coming in to the app from users using IE and redirects to a page of your choice. This should be a simple page informing the user their browser is too old or maybe even link them to [what they deserve](https://bit.ly/IqT6zt)

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

[](#installation)

You can install the package via composer:

```
composer require craigpotter/laravel-ie-honeypot
```

You can publish the config file with:

```
php artisan vendor:publish --provider="CraigPotter\LaravelIEHoneypot\LaravelIEHoneypotServiceProvider" --tag="ie-honeypot-config"
```

This is the contents of the published config file:

```
return [
    /**
     * This switch determines if the honeypot protection should be activated.
     */
    'enabled' => env('IE_HONEYPOT_ENABLED', true),

    /**
     * This switch determines the URL that IE users will get redirect to.
     */
    'redirect_url' => env('IE_HONEYPOT_REDIRECT_URL', '/ie-trap'),

    /**
     * This switch determines if the bypass functionality is enabled.
     * This will allow use of the @ieBypass directive and allow IE users to access your
     * site by adding ?ie-bypass=true to a url
     */
    'bypass_enabled' => env('IE_HONEYPOT_BYPASS_ENABLED', true),

];
```

Usage
-----

[](#usage)

If you want to display a page within your own application to your IE users, you should create a route with a simple layout and add the URL to your configuration file.

There are two main ways to use this package but both involve adding middleware to your routes.

### Option 1

[](#option-1)

Add the middleware to indiviual routes in your routes file or to a group of routes. This option might be best if you have a single point of entry for your application. For example, Users have to login so you might choose to add it to your login route only.

```
use CraigPotter\LaravelIEHoneypot\CaptureIE;

Route::get('/', [YourController::class])->middleware(CaptureIE::class);

// OR

Route::middleware(CaptureIE::class)->group(function() {
    // Routes
});
```

### Option 2

[](#option-2)

If you have a lot of routes or just need to keep those pesky IE Users off your site, you could register it as global middleware

```
// app\Http\Kernal.php

protected $middleware = [
   // ...
   \CraigPotter\LaravelIEHoneypot\CaptureIE::class,
];
```

Bypass
------

[](#bypass)

If the `bypass_enabled` option is true in your configuration, the middleware will allow any user to a path if it has a url param of `ie-bypass=true`. You can share links with this bypass if you need to e.g `https://your-app.com/contact-us?ie-bypass=true`

You also have the option to add this to your own bypass page to allow users to proceed at their own risk. For example, if a user visits `/contact-us` with an IE browser, they would be redirected to our `redirect_url`, you can use the `@ieBypass` blade directive to automatically generate the bypass url for the initial page visited. In this case, it would be `/contact-us?ie-bypass=true`. If we look at the view for that page:

```

        Use a better browser!>

        Click here to proceed at your own risk

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Craig Potter](https://github.com/CraigPotter)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~263 days

Total

3

Last Release

1370d ago

Major Versions

1.1.0 → 2.0.02022-10-02

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

2.0.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a56cd4733b15c1e79ac26bc1658eb59a35a102250f9f48b929811c29f86bc60?d=identicon)[craigpotter](/maintainers/craigpotter)

---

Top Contributors

[![craigpotter](https://avatars.githubusercontent.com/u/1442635?v=4)](https://github.com/craigpotter "craigpotter (16 commits)")

---

Tags

craigpotterlaravel-ie-honeypot

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/craigpotter-laravel-ie-honeypot/health.svg)

```
[![Health](https://phpackages.com/badges/craigpotter-laravel-ie-honeypot/health.svg)](https://phpackages.com/packages/craigpotter-laravel-ie-honeypot)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44855.7k](/packages/harris21-laravel-fuse)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)

PHPackages © 2026

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