michal2013
New Pleskian
How can I prevent direct access to `app.js`
When anyone accesses 'example.com/app.js' I m able to see all the code inside the app.js that is not safe and secure
Plesk has to understand the situation and find/provide the proper solution for this.
My project structure is given below
HOST: 'www.example.com'
`
D:\PROJECT - LIVE\IMS\
├── app.js # Main application entry point
├── ecosystem.config.js # PM2 configuration
├── package.json
├── package-lock.json
│
├── certificate/ # SSL certificates
├── keys/ # Security keys
│
├── config/
│ └── myDB.js
│
├── cronjobs/
│ └── cronjob.js
│
├── middleware/
│ ├── mPermission.js
│
├── routes/
│ ├── index.js
│ ├── router.js
│ ├── ADMIN/
│ │ ├── mail.js
│ │ └── CREDENTIAL/
│ │ └── credential.js
│ ├── CHAT/
│ │ └── chatRoutes.js
│ ├── login/
│ │ └── loginPage.js
│ ├── PROFILE/userProfile/
│
├── public/
│ ├── images/
│ │ └── favicon.png
│ └── stylesheets/
│ └── style.css
│
├── views/
│ ├── error.html
│ ├── error.jade
│
├── uploads/
│ ├── file/
├── tmp/
└── node_modules/
`
When anyone accesses 'example.com/app.js' I m able to see all the code inside the app.js that is not safe and secure
Plesk has to understand the situation and find/provide the proper solution for this.
My project structure is given below
HOST: 'www.example.com'
`
D:\PROJECT - LIVE\IMS\
├── app.js # Main application entry point
├── ecosystem.config.js # PM2 configuration
├── package.json
├── package-lock.json
│
├── certificate/ # SSL certificates
├── keys/ # Security keys
│
├── config/
│ └── myDB.js
│
├── cronjobs/
│ └── cronjob.js
│
├── middleware/
│ ├── mPermission.js
│
├── routes/
│ ├── index.js
│ ├── router.js
│ ├── ADMIN/
│ │ ├── mail.js
│ │ └── CREDENTIAL/
│ │ └── credential.js
│ ├── CHAT/
│ │ └── chatRoutes.js
│ ├── login/
│ │ └── loginPage.js
│ ├── PROFILE/userProfile/
│
├── public/
│ ├── images/
│ │ └── favicon.png
│ └── stylesheets/
│ └── style.css
│
├── views/
│ ├── error.html
│ ├── error.jade
│
├── uploads/
│ ├── file/
├── tmp/
└── node_modules/
`