Title: Using WordPress to Authenticate Users
Last modified: August 19, 2016

---

# Using WordPress to Authenticate Users

 *  [Nith](https://wordpress.org/support/users/nith/)
 * (@nith)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/using-wordpress-to-authenticate-users/)
 * Hello,
 * I’m wondering if it’s possible to use wordpress to authenticate users and restrict
   users from accessing pages located within the wordpress structure.
 * For example, currently my wordpress installation resides at:
 * `http://exampledomain.com/admin/`
 * …and I have created a folder & page inside that directory:
 * `http://exampledomain.com/admin/myservice/index.php`
 * As index.php is not linked with wordpress at all, currently anyone can access
   that page. However I want to be able to use the wordpress login to authenticate
   users and if the user is not logged in and tries to access the page, they are
   taken back to the wordpress login.
 * Anyone know how this can be achieved?

Viewing 1 replies (of 1 total)

 *  [JohnL](https://wordpress.org/support/users/johnl/)
 * (@johnl)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/using-wordpress-to-authenticate-users/#post-1418109)
 * I hope someone drops an answer on your question, Nith.

Viewing 1 replies (of 1 total)

The topic ‘Using WordPress to Authenticate Users’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [JohnL](https://wordpress.org/support/users/johnl/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/using-wordpress-to-authenticate-users/#post-1418109)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
