# Response with code 403 to specific client?

**URL:** https://community.wowza.com/t/response-with-code-403-to-specific-client/102564
**Category:** Wowza Developer Dojo
**Created:** [February 3, 2025, 9:30pm UTC](https://community.wowza.com/t/response-with-code-403-to-specific-client/102564 "2025-02-03T21:30:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Zarko\_Tomasevic](https://avatars.discourse-cdn.com/v4/letter/z/779978/32.png) [@Zarko\_Tomasevic](https://community.wowza.com/u/Zarko_Tomasevic)
#### Post date: [February 3, 2025, 9:30pm UTC](https://community.wowza.com/t/response-with-code-403-to-specific-client/102564/1 "2025-02-03T21:30:55Z")

</div>

I’m using onHTTPStreamerRequest , to inspect http streaming requests, is there any way to send response with forbiden http code 403 , if some conditions are met??

---

<div class="post-metadata">

### Author: ![sayali.talathi](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@sayali.talathi](https://community.wowza.com/u/sayali.talathi)
#### Post date: [May 2, 2025, 6:37am UTC](https://community.wowza.com/t/response-with-code-403-to-specific-client/102564/2 "2025-05-02T06:37:15Z")

</div>

Yes, you can reject HTTP streaming requests from within the `onHTTPStreamerRequest` method based on your custom logic.

You don’t have the ability to modify the incoming request, but if you decide to reject it (for example, due to authentication failure or invalid parameters), you can do so using the `httpSession` which is available in the `onHTTPStreamerRequest` method signature.

```auto
httpSession.rejectSession(); // Sends a 403 Forbidden response to the client
httpSession.setDeleteSession(); // Immediately removes the session from the app

```

The first call rejects the session, sending a 403 response to the player, and the second call removes the session from the application immediately, instead of waiting for it to time out.

This is the recommended way to block unwanted streaming sessions based on your conditions.
