Title: Restrict load-scripts.php while accessing directly on browser
Last modified: September 18, 2021

---

# Restrict load-scripts.php while accessing directly on browser

 *  [vins1896](https://wordpress.org/support/users/vins1896/)
 * (@vins1896)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/restrict-load-scripts-php-while-accessing-directly-on-browser/)
 * Is that safe to have the load-scripts.php to be accessed publicly? If we are 
   restricting them to be accessed only by logged in users, we are getting issues
   in loading js and CSS files from other plugins for non logged in users.
 * So as per PCI compliance should we restrict the public access to load-script 
   file or it is fine to be leave them accessed in public? Please advise
 * Also is there a way to block the direct access to this file and allow ajax calls
   alone?

Viewing 1 replies (of 1 total)

 *  [lab678](https://wordpress.org/support/users/lab678/)
 * (@lab678)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/restrict-load-scripts-php-while-accessing-directly-on-browser/#post-14884726)
 * If you can put the file in its own directory, maybe you can then use the link
   below to restrict access to it.
 * [https://askubuntu.com/questions/713235/how-do-i-setup-apache-to-only-allow-local-devices-to-connect-to-my-website-app](https://askubuntu.com/questions/713235/how-do-i-setup-apache-to-only-allow-local-devices-to-connect-to-my-website-app)

Viewing 1 replies (of 1 total)

The topic ‘Restrict load-scripts.php while accessing directly on browser’ is closed
to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [lab678](https://wordpress.org/support/users/lab678/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/restrict-load-scripts-php-while-accessing-directly-on-browser/#post-14884726)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
