Forums

Django admin and VPN

Hi guys, i would just like to know if whether a django admin site('/admin/') can be accessed only by VPN. For example, a user visits the site with '/admin/'; he/she will then be redirected to a 403 forbidden page unless he/she is connected to their VPN, he could access the admin site.

Here's a simple middleware to limit access based on IP. You'd need to know the IPs that the the VPN would use.

Thank you so much!