Folders and paths on the frontend (Security)
-
Hello WP community.
Due to the lack of the solution I need, I started to write my own plugin.
I am a newbie in this business and I have some questions. Answers to which I could not find on the Internet. The question is about security.
My plugin has additional js and CSS files, some for the plugin settings admin panel page and some for the open frontend. Scripts and styles are loaded into the frontend only if there is a shortcode on the site page. And only those that are necessary for the frontend. In the admin panel as well, only the ones that are needed to interact with the admin panel settings.
Thus the question arises.
1. How secure is it to show the path to my script and other files
<script src = "https://<page>/wordpress/wp-content/plugins/<plugin name>/js/<script for fe>.js?ver=1.0.3"...
on the open front? Should I find some better place for them?
The script doesn’t contain any confidential information, only functions to handle user input and interaction.
2. If this is not secure, what are some solutions or good practices for this task?
Thanks for your help.
- You must be logged in to reply to this topic.