2

I know PHP file doesn't get executed in node server, so it let the PHP file to be downloaded.

This is a huge security risk, isn't it? How to stop node from letting users download the php file?

Praveen
  • 2,400
  • 3
  • 23
  • 30
  • 6
    As you correctly see, node.js does not execute PHP files... so what is it supposed to do with them? Why are you making PHP files accessible on a node.js webserver in the first place? – crackmigg Feb 19 '13 at 17:31
  • @migg Well tell my how to restrict the access? sorry i'm new to node! – Praveen Feb 19 '13 at 17:37
  • 2
    Just don't mix your files. No point in finding a technical solution when some simple project organization solves all your problems. – Sean McSomething Feb 19 '13 at 18:25
  • You have to provide more details for more detailed help. If you are new to node, [read read read](http://stackoverflow.com/questions/2353818/how-do-i-get-started-with-node-js) – crackmigg Feb 19 '13 at 21:53

0 Answers0