# IP Based Authentication with pbslb

**URL:** <https://community.a10networks.com/t/ip-based-authentication-with-pbslb/195>\
**Category:** aFleX\
**Created:** [January 21, 2013, 4:35pm UTC](https://community.a10networks.com/t/ip-based-authentication-with-pbslb/195 "2013-01-21T16:35:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mischa](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@mischa](https://community.a10networks.com/u/mischa)\
**Post date:** [January 21, 2013, 4:35pm UTC](https://community.a10networks.com/t/ip-based-authentication-with-pbslb/195/1 "2013-01-21T16:35:17Z")

</div>

When you want to allow certain IPs to specific content. The PBSLB List: `! BWList 10.0.0.1/32 1 10.10.10.10/32 1 172.16.0.0/16 1 `The aFleX: `when HTTP_REQUEST { if { ([HTTP::uri] starts_with "/certain_url") } { switch [POLICY::bwlist id[IP::remote_addr] BWList] { "1" { pool sg-http } default { log "Rejected ip address" [IP::client_addr] HTTP::redirct "/forbidden_url.html" } } } }`
