IP Restricting the /admin path to LAN users only

mun yung kan asked on March 2, 2016 03:27

Hi Guys,

I'm planning a build for a single instance of kentico.

The server is hosted on premise, meaning content authors access the server via their internal networks, and the public come in through a different route.

I was planning to use IP Restrictions to prevent users from the public accessing the /admin path.

Is this a viable/usable solution?

Correct Answer

Trevor Fayas answered on March 2, 2016 15:38

You should be able to use IIS URL Rewrite 2.0 module to specify a redirect for /admin and /cmsdesk for certain IP ranges.

use condition: {REMOTE_ADDR} Check if input string: Does Not Match Pattern Pattern: 201.45.33.[0-5] (adjust to fit your IP ranges)

That should do the trick!

Please mark as answered if this worked for you.

1 votesVote for this answer Unmark Correct answer

Recent Answers

mun yung kan answered on March 2, 2016 16:11 (last edited on March 4, 2016 09:18)

thanks trevor! i'll certainly give this a try.


implemented what trevor recommended. used 2 regex rules.

1 to determine the path in the request. another to determine if the IP is allowed

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.