# Secure URI on virtual server

**URL:** <https://community.f5.com/t/secure-uri-on-virtual-server/54624>\
**Category:** Technical Forums\
**Tags:** iapps, big-ip-access-policy-manager-apm, security\
**Created:** [February 26, 2021, 7:27am UTC](https://community.f5.com/t/secure-uri-on-virtual-server/54624 "2021-02-26T07:27:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Abrahams](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@Daniel\_Abrahams](https://community.f5.com/u/Daniel_Abrahams)\
**Post date:** [February 26, 2021, 7:27am UTC](https://community.f5.com/t/secure-uri-on-virtual-server/54624/1 "2021-02-26T07:27:07Z")

</div>

Whats is best practice to secure a URI on a virtual server?

For example [www.test.com/test/dev](http://www.test.com/test/dev)

If user enters that in there browser they should be able to access the site, but if the manually remove /dev so its only [www.test.com/test](http://www.test.com/test) they should be denied.

Cant find any settings that does this so my guess that you have to apply a iRule

Does anyone have a suggestion how to accomplish this

Best regards

Daniel

---

<div class="post-metadata">

**Author:** ![PeteWhite](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/petewhite/32/33768_2.png) [@PeteWhite](https://community.f5.com/u/PeteWhite)\
**Post date:** [February 26, 2021, 10:41am UTC](https://community.f5.com/t/secure-uri-on-virtual-server/54624/2 "2021-02-26T10:41:08Z")

</div>

Use an LTM Traffic Policy to match the URIs and deny the client.
