Sunday, July 3, 2022
HomeWordPress DevelopmentForestall direct entry to Wordpress plugin belongings?

Forestall direct entry to WordPress plugin belongings?


I used to be questioning if there was a easy option to stop direct entry to asset information inside a WordPress plugin. Primarily javascript information.

I am growing a plugin that is meant for use solely within the admin dashboard, and I would love the javascript information this plugin makes use of to not be uncovered to the general public. It ought to solely be capable of be run by a logged-in admin on the dashboard.

At the moment, anybody can entry a plugin asset file instantly by the URL by way of
https://DOMAIN.com/wp-content/plugins/YOURPLUGIN/belongings/YOURJSFILE.js

So if someplace had been to in some way get that area they will few the JS file.

Hope that query is smart.

Thanks!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments