Title: Forcing Login?
Last modified: August 18, 2016

---

# Forcing Login?

 *  [bangers](https://wordpress.org/support/users/bangers/)
 * (@bangers)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/)
 * Hi, Just like to say, WordPress is pretty sweet. Has everything I wanted (diary/
   blog) plus more.
    I have 2 copies. One is my public blog which anyone can read
   and post comments, and a private one. I just want to know, on my private one,
   I only have the single admin login, but can I force the user the login to view
   the page? I’m sure this would be pretty simple to enforce. If the code is simple,
   I will happily hack into my index.php. Thanks! Thanks

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

 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/#post-22733)
 * I think what you want is post password, which isn’t implemented yet.
    [http://wordpress.org/docs/reference/post/#post_password](http://wordpress.org/docs/reference/post/#post_password)
 *  Thread Starter [bangers](https://wordpress.org/support/users/bangers/)
 * (@bangers)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/#post-22741)
 * Well yes, that could do what I want.
    But I was hoping for something less complicated.
   Merely, login to view the site, or nothing at all.
 *  [jimbrown](https://wordpress.org/support/users/jimbrown/)
 * (@jimbrown)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/#post-22742)
 * I think required login to view the site would be a good addition.
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/#post-22745)
 * I would do that on an Apache level, not the WordPress level. Using a combination
   of .htaccess and htpasswd you should be able to protect any directory in a highly
   secure fashion. Searching on google will provide many tutorials for this, and
   your host’s control panel might even have a dialog for this.
 *  Anonymous
 * [22 years, 7 months ago](https://wordpress.org/support/topic/forcing-login/#post-23094)
 * Second on allusion. To put this into a position of WP would be kinda foolish 
   because WP could never do it as well as Apache could.
 *  [gfmorris](https://wordpress.org/support/users/gfmorris/)
 * (@gfmorris)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/forcing-login/#post-23096)
 * Third on allusion. 🙂
 *  [djardine](https://wordpress.org/support/users/djardine/)
 * (@djardine)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/#post-23189)
 * Part bump, part reply:
    I am looking to require people to register to the site
   before being able to see the blog. I would like to add a Login Screen to the 
   front of the site (or add the Register php to an index page) to ask people to
   Register or Login if they have an account. Obviously Registered and Logged In
   users could skip this page after registering/logging in. If WP doesnt log you
   out unless you ask to, then users could skip the whole front page upon revisiting
   the site. I also need the registered users to only be able to add Comments, not
   add articles or update or edit the site in any way. Only adding comments allows
   me to maintain control over who can add posts/updates etc after they have become
   fairly active in contributing trackbacks etc and/or at my discretion. Basic registration
   would only entail the user to post comments. I guess its like being able to assign
   user priveledges to Membership Levels as i havent been able to find this functionality.
   Lastly, I have been trying to work out how to turn on the Registration feature
   of WP but every time I go to wp-register.php it says “User Registration is currently
   not allowed”… even though int he Options> General tab I have selected both Membership
   options. Any clues on this? I know I missed something small, but I cant see it!
   Thanks guys.. awesome job on this script and these forums!
 *  [faewench](https://wordpress.org/support/users/faewench/)
 * (@faewench)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/#post-23191)
 * maybe this link will give some answers to this?
    [http://www.skippy.net/blog/2004/05/23/per-post-user-level-restrictions/](http://www.skippy.net/blog/2004/05/23/per-post-user-level-restrictions/)

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

The topic ‘Forcing Login?’ is closed to new replies.

 * 8 replies
 * 7 participants
 * Last reply from: [faewench](https://wordpress.org/support/users/faewench/)
 * Last activity: [21 years, 11 months ago](https://wordpress.org/support/topic/forcing-login/#post-23191)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
