Title: IP Range Recognition
Last modified: August 20, 2016

---

# IP Range Recognition

 *  [igendreau](https://wordpress.org/support/users/igendreau/)
 * (@igendreau)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/ip-range-recognition/)
 * I’d like to be able to create this setup for my WP site:
 * -If site is being accessed by a particular IP address range, then user gets access
   -
   Otherwise, user needs a password
 * Basically, I’m trying to create an intranet, but needs to be easily accessible
   anywhere. If user is in the building, the site doesn’t need a password, otherwise
   you need to log in. Any ideas?

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/ip-range-recognition/#post-3429138)
 * This can be done in .htaccess (check with webhost on what you may or may not 
   be able to accomplish at your server access level, especially if on shared hosting)
 * This Stack Exchange convo discussed the basic allow/deny principle and please
   note that wild cards * can be used to create a blocked IP range…
 *     ```
       ErrorDocument 403 /specific_page.html
       Order Allow,Deny
       Allow from 111.222.333.444
       ```
   
 * Create the .html page something like a middle finger pointing up (lol) and mod
   above to:
 *     ```
       ErrorDocument 403 /specific_page.html //create this page<===
       Order Allow,Deny
       Deny from 'number'.*
       ```
   
 * *.*.*.* would block all – don’t do that…
 * 111.* block all in this address range…
 *  Thread Starter [igendreau](https://wordpress.org/support/users/igendreau/)
 * (@igendreau)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/ip-range-recognition/#post-3429312)
 * Okay, now will that just allow me to grant access to the correct IP range? I’d
   like to be able to grant access to all address ranges, I just want a certain 
   IP address range to be able to skip a login and password, while everyone else
   needs to.

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

The topic ‘IP Range Recognition’ is closed to new replies.

## Tags

 * [intranet](https://wordpress.org/support/topic-tag/intranet/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [igendreau](https://wordpress.org/support/users/igendreau/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/ip-range-recognition/#post-3429312)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
