Title: Authenticate admin from external script
Last modified: August 19, 2016

---

# Authenticate admin from external script

 *  [lukeburns](https://wordpress.org/support/users/lukeburns/)
 * (@lukeburns)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/authenticate-admin-from-external-script/)
 * I have an external script located in the WP directory. I want to protect this
   from everyone except the admin. I was wondering if there was a way to do this.
   Maybe through WP cookies?
 * The script is very simple. I just want to include something that requires the
   admin to be logged in. When logged in, they can access the directory as normal.

Viewing 1 replies (of 1 total)

 *  Thread Starter [lukeburns](https://wordpress.org/support/users/lukeburns/)
 * (@lukeburns)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/authenticate-admin-from-external-script/#post-1274852)
 * bump

Viewing 1 replies (of 1 total)

The topic ‘Authenticate admin from external script’ is closed to new replies.

## Tags

 * [cookies](https://wordpress.org/support/topic-tag/cookies/)
 * [external](https://wordpress.org/support/topic-tag/external/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [session](https://wordpress.org/support/topic-tag/session/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 1 reply
 * 1 participant
 * Last reply from: [lukeburns](https://wordpress.org/support/users/lukeburns/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/authenticate-admin-from-external-script/#post-1274852)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
