Title: Allow only certain IPs
Last modified: August 22, 2016

---

# Allow only certain IPs

 *  Resolved [informatica.cita](https://wordpress.org/support/users/informaticacita/)
 * (@informaticacita)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/allow-only-certain-ips/)
 * Hi,
 * I’d like to allow only certain IP ranges. Should I config as banned the entire
   range of IPs of the world except the allowed range ? I’ve read this plugin is
   not tested with a large amount of IPs.
 * e.g: If I want to allow 150.150.1.1 – 150.150.6.255, should I ban:
    1.1.1.1 –
   150.149.255.255 and 150.150.7.1 – 255.255.255.255 ?
 * PS: Modify .htaccess is not a solution (I guess) cause I’ve using a MultiSite
   WP
 * Thanks in advance !!
 * [https://wordpress.org/plugins/wp-ban/](https://wordpress.org/plugins/wp-ban/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/allow-only-certain-ips/#post-5445448)
 * Yea you can try that, but I did not test on that use case since it is meant to
   be a blacklist rather than a white list.
 *  Thread Starter [informatica.cita](https://wordpress.org/support/users/informaticacita/)
 * (@informaticacita)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/allow-only-certain-ips/#post-5445544)
 * No, that doesn’t work on WP mulsite.
 * I will start to develope my first WP plug-in :-S
 * thanx.
 *  Plugin Author [Lester Chan](https://wordpress.org/support/users/gamerz/)
 * (@gamerz)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/allow-only-certain-ips/#post-5445549)
 * Nice! Fork it [https://github.com/lesterchan/wp-ban](https://github.com/lesterchan/wp-ban)
   =)
 *  Thread Starter [informatica.cita](https://wordpress.org/support/users/informaticacita/)
 * (@informaticacita)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/allow-only-certain-ips/#post-5445579)
 * I’m sorry but on my way of coding, I’ve found [Restricted Site Access pluging](https://wordpress.org/plugins/restricted-site-access/)
   and with little modification (I’ve mentioned this plugin) it works fine for me.
 * Thanks !!
 *  [jeffman111](https://wordpress.org/support/users/jeffman111/)
 * (@jeffman111)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/allow-only-certain-ips/#post-5445689)
 * Can this plugin me modified to only allow access to visitors coming from a referred
   address? I am designing a site for a client who is selling an exclusive line 
   of products he only wants available to customers of his partner companies. The
   thought is that those companies would place a link to his site, and only traffic
   coming from those links would have access. If the customers attempt to go directly
   to my client’s page, it would block. They would only be allowed if they clicked
   the link on the referring site.
    Is this possible? Do you know of any other plugins
   that would do the job? The one mentioned above allows traffic from an IP on which
   the person is browsing, not by referral.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Allow only certain IPs’ is closed to new replies.

 * ![](https://ps.w.org/wp-ban/assets/icon.svg?rev=978059)
 * [WP-Ban](https://wordpress.org/plugins/wp-ban/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ban/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ban/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ban/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ban/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ban/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [jeffman111](https://wordpress.org/support/users/jeffman111/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/allow-only-certain-ips/#post-5445689)
 * Status: resolved