# Route Request According to Source IP

**URL:** <https://community.traefik.io/t/route-request-according-to-source-ip/9215>\
**Category:** Traefik v2\
**Tags:** file, middleware\
**Created:** [January 6, 2021, 12:57pm UTC](https://community.traefik.io/t/route-request-according-to-source-ip/9215 "2021-01-06T12:57:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tahasevim](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tahasevim](https://community.traefik.io/u/tahasevim)\
**Post date:** [January 6, 2021, 12:57pm UTC](https://community.traefik.io/t/route-request-according-to-source-ip/9215/1 "2021-01-06T12:57:04Z")

</div>

Hi,

I am searching for a way to achieve routing a HTTP/HTTPS request to a service by checking **request's source IP.** However, the only thing that I found about source ip is `ipWhiteList` middleware. But since it is a middleware and not a router rule, I can not catch a request in router level. Is there a way to use a router rule that considers incoming request ip ? Or in general, how can I route a request to a service according to its source IP ?
