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? Link to comment https://forums.phpfreaks.com/topic/166261-solved-limit-execution/ Share on other sites More sharing options...
newb Posted July 17, 2009 Author Share Posted July 17, 2009 Bump. Link to comment https://forums.phpfreaks.com/topic/166261-solved-limit-execution/#findComment-876835 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? Link to comment https://forums.phpfreaks.com/topic/166261-solved-limit-execution/#findComment-876842 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? Link to comment https://forums.phpfreaks.com/topic/166261-solved-limit-execution/#findComment-876843 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. Link to comment https://forums.phpfreaks.com/topic/166261-solved-limit-execution/#findComment-876860 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. Link to comment https://forums.phpfreaks.com/topic/166261-solved-limit-execution/#findComment-876871 Share on other sites More sharing options...
newb Posted July 17, 2009 Author Share Posted July 17, 2009 ah i see, thanks. Link to comment https://forums.phpfreaks.com/topic/166261-solved-limit-execution/#findComment-877152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.