https://github.com/ichtrojan/laravel-frustration
Frustrate unusual users
https://github.com/ichtrojan/laravel-frustration
frustrate frustration laravel php redirect
Last synced: 3 months ago
JSON representation
Frustrate unusual users
- Host: GitHub
- URL: https://github.com/ichtrojan/laravel-frustration
- Owner: ichtrojan
- Created: 2020-05-15T13:23:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-15T22:23:12.000Z (over 5 years ago)
- Last Synced: 2024-04-17T12:14:55.112Z (over 1 year ago)
- Topics: frustrate, frustration, laravel, php, redirect
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 43
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Frustration

## Introduction
This package main purpose is to "Frustrate your enemies". Alright, let's be serious. This package will redirect URL guessers to any of the random URL that you specify.
## Use case
This is a laravel package but you will have some users that want to access `/wp-admin.php` trying to assume that your application is built on Wordpress. By default, it will return a 404 but let's not let it end there, let's frustrate them.
## Installation
To install this package run:
```bash
composer install ichtrojan/laravel-frustration
```This will install the madness in this repo.
Next, export the config file by running:
```bash
php artisan vendor:publish --tag=frustration
```This will publish the default config in `config/frustration.php`.
## Usage
The only source of truth is `frustration.php`, here's what it looks like:
```php
[
'wp-admin.php', 'index.php', 'wp-login.php'
],'redirect' => [
'https://www.fbi.gov/wanted',
'https://www.youtube.com/watch?v=pok8H_KF1FA',
'https://fast.com',
'http://www.omfgdogs.com',
'https://cat-bounce.com'
]
];
```the `routes` key is an array of forbidden routes while the `redirect` key is an array of random URLs that you decide to redirect your victims to.
>**NOTE**
> * The forbidden routes should exist without the forward-slash `/`
> * It will be nice to sneak in pornhub in there, just saying 🤫## Conclusion
I want to do more with this package, probably when I get bored next. Special thanks to Vibes and Insha-Allah. Please if you find any issue or have a cool feature idea do send in a PR.