Sign in to follow this  
oldtree

Disabling PHP functions using htaccess

Recommended Posts

Hey guys, 

 

Is it possible to disable certain PHP functions like: phpinfo, show_source, exec, shell_exec, system, passthru, proc_open, popen, parse_ini_file,  curl_exec, curl_multi_exec

 

Can I do this using PHP_flag or PHP_value? If so, how? Please let me know what I need to add to the .htaccess file.

 

Thank you.

Share this post


Link to post
Share on other sites

Not possible by .htaccess file however you should be able to do this through cPanel. Go to select php version then php settings and there should be a disable_functions option. If it's available open a support ticket and our support team should be able to make it available to you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this