newb Posted July 17, 2009 Share Posted July 17, 2009 is there a way to limit php execution in a specific file so that only certain commands can be ran? Quote Link to comment Share on other sites More sharing options...
newb Posted July 17, 2009 Author Share Posted July 17, 2009 Bump. Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted July 17, 2009 Share Posted July 17, 2009 There's always a way. Is there a simple way that wouldn't involve countless hours modifying the Php or apache source code? No. Why would you need something like this? Quote Link to comment Share on other sites More sharing options...
smerny Posted July 17, 2009 Share Posted July 17, 2009 you mean stop someone from abusing something by using it over and over in a short time? or what exactly? Quote Link to comment Share on other sites More sharing options...
phporcaffeine Posted July 17, 2009 Share Posted July 17, 2009 I would say that the most 'complete' way of doing this would be to make a custom build of the binaries that you only build with it what you want. Being that it may not be very attractive to do so, within php.ini there are two directives that may be of use to you: disable_classes disable_functions and of course, only load the extensions that you'll need. Doing those three things should get you where you want to be without having to build custom binaries. Quote Link to comment Share on other sites More sharing options...
genericnumber1 Posted July 17, 2009 Share Posted July 17, 2009 I would say that the most 'complete' way of doing this would be to make a custom build of the binaries that you only build with it what you want. Being that it may not be very attractive to do so, within php.ini there are two directives that may be of use to you: disable_classes disable_functions and of course, only load the extensions that you'll need. Doing those three things should get you where you want to be without having to build custom binaries. I know you can blacklist with that, but can you whitelist with those directives like he wants? If so, that's kind of cool, I didn't know that. Quote Link to comment Share on other sites More sharing options...
newb Posted July 17, 2009 Author Share Posted July 17, 2009 ah i see, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.