Title: require authentication?
Last modified: August 18, 2016

---

# require authentication?

 *  [chad](https://wordpress.org/support/users/chad/)
 * (@chad)
 * [22 years ago](https://wordpress.org/support/topic/require-authentication/)
 * Is it simple to require a user to authenticate before viewing the site? I’d like
   any unauthenticated users to be tossed to the login screen if possible.
    Assuming
   that’s possible, how would I go about changing the page that gets displayed from
   the curent to something else? Right now it looks like when I login it brings 
   me right to post.php, I’d like that to change to just the index.php if possible.
   Thanks in advance for the help!

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [22 years ago](https://wordpress.org/support/topic/require-authentication/#post-42865)
 * By users, do you mean a casual viewer ?
    If that is what you mean, and you do
   not want casual viewers to be able to view your page, you will need to have a.
   htaccess file and passwords set up. This is not part of the WP set up, but is
   fairly easily added. With the next part, you can have 2 bookmark links – one 
   to post.php, and the other to index.php. Click the one you want ?
 *  Thread Starter [chad](https://wordpress.org/support/users/chad/)
 * (@chad)
 * [22 years ago](https://wordpress.org/support/topic/require-authentication/#post-42902)
 * The htaccess thing would work, but I don’t want users to have to login twice 
   to post new entries.
    I guess I don’t understand the second part of your reply.
   I’m wondering how to change the page that you get directed to immediately after
   logging into Worldpress. For my installation I get directed to the post.php page
   right after hitting login. I’d like to be able to have people login but get directed
   to the index.php page instead.
 *  [abrazell](https://wordpress.org/support/users/abrazell/)
 * (@abrazell)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/require-authentication/#post-43541)
 * Digging this up but it seems to be along the lines of what I’m trying to do.
 * I have a system I designed as part of an intranet. As a discussion system, I’ve
   installed WordPress. The external system logs a user in. I want WP to check to
   find out if the user is logged in and if not, kick them back to the external 
   login page. If they are logged in, allow them to view the wordpress install. 
   Ideas?
 *  [kmiller](https://wordpress.org/support/users/kmiller/)
 * (@kmiller)
 * [21 years, 1 month ago](https://wordpress.org/support/topic/require-authentication/#post-43542)
 * Hai-
 * Well there are alot of ways to do this. If you have an exsisting membership session
   we can discuss that, I am also working on a system that will tie directly into
   wordpress and let me manage and signup users that way, has anyone else already
   done this?
 * Kevin
 *  [ascension](https://wordpress.org/support/users/ascension/)
 * (@ascension)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/require-authentication/#post-43546)
 * Bump! I’m trying to do the same here … for an intrAnet use.
 * Any ideas?
 *  [jcushman](https://wordpress.org/support/users/jcushman/)
 * (@jcushman)
 * [20 years, 10 months ago](https://wordpress.org/support/topic/require-authentication/#post-43547)
 * If all you want is to require visitors to be registered users in order to view
   any part of the site, there’s a great plugin to do that:
 * [http://dev.wp-plugins.org/browser/registered-only/](http://dev.wp-plugins.org/browser/registered-only/)
 * It’s nifty — the plugin consists of about two lines of actual code, and works
   just as one would hope. This is more in answer to the original poster’s question
   than the intranet followups, of course — for those you’ll most likely need custom
   code.

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

The topic ‘require authentication?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 6 participants
 * Last reply from: [jcushman](https://wordpress.org/support/users/jcushman/)
 * Last activity: [20 years, 10 months ago](https://wordpress.org/support/topic/require-authentication/#post-43547)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
