hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : disable_functions feature in .htaccess?
Reply

Forum Jump

disable_functions feature in .htaccess?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-02-2007, 07:43 PM
aldo aldo is offline
Junior Guru Wannabe
 
Join Date: Aug 2007
Posts: 63
*

disable_functions feature in .htaccess?


I was wondering if anyone knew how to disable phpMail() (SendMail), fsockopen(), and things such as that with htaccess? Sorry If I posted this in the wrong place but I have searched google and found nothing. Also how can I maybe force ads with htaccess? And is there a way to also re-enable those features in a certain directory(s)? Thank you.



Sponsored Links
  #2  
Old 10-02-2007, 09:39 PM
ThatScriptGuy ThatScriptGuy is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: AR
Posts: 2,377
If you're looking to make these changes system-wide, you're going to need access to httpd.conf

If you are hosting users and want to edit their .htaccess to make these changes...that's just a bad idea because they can go right in and undo the changes that you've made to the file.

Kevin

  #3  
Old 10-02-2007, 10:03 PM
aldo aldo is offline
Junior Guru Wannabe
 
Join Date: Aug 2007
Posts: 63
Quote:
Originally Posted by kcackler View Post
If you're looking to make these changes system-wide, you're going to need access to httpd.conf

If you are hosting users and want to edit their .htaccess to make these changes...that's just a bad idea because they can go right in and undo the changes that you've made to the file.

Kevin
Yes I know that they could access it and change it but I am going to be hosting scripts, like phpBB, SMF, PHP Fusion and wont give them access via FTP or file manager. So they wouldnt be able to touch the .htaccess

Sponsored Links
  #4  
Old 10-02-2007, 10:13 PM
ThatScriptGuy ThatScriptGuy is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: AR
Posts: 2,377
Not sure what I was thinking when I wrote that previous post...it's been a long day...

If you're in a shared environment, and don't have root access to the server, you will have an extremely difficult (if not impossible) time disabling these features...

  #5  
Old 10-02-2007, 10:49 PM
aldo aldo is offline
Junior Guru Wannabe
 
Join Date: Aug 2007
Posts: 63
Dang, oh well. Thanks anyways

  #6  
Old 10-02-2007, 10:50 PM
Barti1987 Barti1987 is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: USA
Posts: 4,342
Quote:
Originally Posted by kcackler View Post
Not sure what I was thinking when I wrote that previous post...it's been a long day...

If you're in a shared environment, and don't have root access to the server, you will have an extremely difficult (if not impossible) time disabling these features...
I do not think that someone on a shared hosting plan can open a forum hosting service (since the service itself needs admin controls).

Peace,

__________________
Testing 1.. Testing 1..2.. Testing 1..2..3...

  #7  
Old 10-18-2007, 07:45 AM
triXtyle triXtyle is offline
Disabled
 
Join Date: Aug 2007
Posts: 290
Make empty php.ini file, place the following in it:
disable_functions = proc_open , popen, disk_free_space, diskfreespace, set_time_limit, leak, tmpfile, exec, system, shell_exec, passthru, fsockopen, phpMail , etc.

and place it in your working directory (or wherever the files you want to block are)
I hope I helped

cheers

  #8  
Old 10-21-2007, 01:47 AM
aldo aldo is offline
Junior Guru Wannabe
 
Join Date: Aug 2007
Posts: 63
Quote:
Originally Posted by triXtyle View Post
Make empty php.ini file, place the following in it:
disable_functions = proc_open , popen, disk_free_space, diskfreespace, set_time_limit, leak, tmpfile, exec, system, shell_exec, passthru, fsockopen, phpMail , etc.

and place it in your working directory (or wherever the files you want to block are)
I hope I helped

cheers
Okay, great. I will give it a try

Reply

Related posts from TheWhir.com
Title Type Date Posted
WHMCS Security Issue Allows for Information Disclosure Web Hosting News 2013-10-25 09:30:46
Softaculous Releases Auto Installer Version 4.1.7 Web Hosting News 2012-12-19 16:45:21
Hosting Control Panel cPanel & WHM 11.34 Release Hits Stable Tier Web Hosting News 2012-11-12 17:04:57
DEMO VIDEO: Idera Continuous Data Protection (Part 2) Whir Tv 2014-05-02 15:00:13
Cloud Host Tier 3 Rolls Out Cloud Server Group Management Tools Web Hosting News 2012-08-28 11:16:18


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?