Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vtxmg's avatar
Level 2

Hacked again :(

I have developed all of my projects in laravel (5.2). Now my sites are being hacked by some indonesian group. I don't know who to blame, hosting company or the code itself. I was warned about viruses while uploading the whole files of my project, is it the cause or is there any security add in hosting. I have changed my password about 255 characters long after my 1st site had been hacked.

0 likes
7 replies
dib258's avatar

Try to change hosting and maybe use Laravel Forge service, which configure your server and patch security update automatically !

ModestasV's avatar

Quick question: is your .env file readable from outside?

goatshark's avatar

Along with what @ModestatsV said (good call on that one, btw), you should check .env.example as well. If you've placed private data (login creds, etc) into that file and it's being pushed to github, that could be a problem.

jlucia's avatar

Also make sure the public facing folder is not set for 777, or writable by the web server user.

Please or to participate in this conversation.