Hi,
Do you suggest to disable any PHP functions for better security in php.ini? As most of us use CMS like wordpress which functions is safe to be disabled? I checked MyVesta panel and it disable by default the following php functions :
For your questions - no simple, short answer, such stuff very, very complex.
If re-phrase your question: “what doorlock to use to protect from thieves”?
But who said that thief will go by door? Why not by window? Or by the hole in a wall? Or from under the floor?
You better need to switch your thinking strategy.
Instead of “how to prevent” to “okay, i’m hacked what should i do earlier, to minimize impact of leaked files / dbs? Is user data in db hashed? is their emails hashed?” An bla bla bla.
Or alternatively pay money and se some kind of WAF from for example sucuri.net
just an example.
Each line above - extremely complex stuff. Security not an easy thing to do.
Because you need keep in mind that almost any component probably contain exploit, or 0day exploit and waiting for its time.
Just make sure that you’re ready for disaster, recovery, and minimizing impact before leak and after leak.
yes. you are right but disabling some function like shell_exec can harden the security. Τhe article you refer to phpbash – A Terminal Emulator Web Shell concludes than disabling php functions is usefull so…