# Bouncer

If you want an extra layer of security where a page is protected by custom password than you can use adminetic bouncer.

### What is **adminetic bouncer ?**

Adminetic Bouncer is extra layer security middleware where a page can be protected by password authentication system. Think of it as VIP privilege page where only user who knows a password can access.

### &#x20;How can we use bouncer ?

On your route file. Use bouncer middleware

```
Route::get('bouncer-protected-page',function(){
  // Some action
})->middleware('bouncer');
```

#### Default bouncer credential.

By default bouncer middleware has credential **adminetic.** You can change default password by changing it on config/adminetic.php

```
'default_bouncer_credential' => 'adminetic',
```

#### Custom bouncer credential

If you want to use custom credential for each page use can pass credential to middleware as follows :-

```
Route::get('bouncer-protected-page',function(){
  // Some action
})->middleware('custom_psw');
```

Here `bouncer-protected-page` has custom bouncer credential as `custom_psw.`

### Verified page session management.

Once page is verified you won't have to get authenticated again as long as your session is alive.

### Demo

![Bouncer authentication page.](https://3590348543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbCZnEbkx6hMOJRn5tS%2Fuploads%2FsMNk2uuBS1sfhXYVdJvP%2F1642782556842.jpg?alt=media\&token=1c0bf6af-b493-410e-9627-9947ea155bcd)
