hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : limiting file types a user can upload - is it possible with cPanel & centos 5?
Reply

Hosting Software and Control Panels Software used in the web hosting industry. Topics include control panels, add-on software, setup scripts, etc.
Forum Jump

limiting file types a user can upload - is it possible with cPanel & centos 5?

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-16-2009, 09:28 PM
sharmaine1111 sharmaine1111 is offline
Web Hosting Master
 
Join Date: Sep 2007
Posts: 815

limiting file types a user can upload - is it possible with cPanel & centos 5?


how do i limit file types a user can upload? example i dont want to allow users uploading files such as mp3 zip mpeg mp4 flv avi, etc.. in my servers.

Is there a way for the server not accept file types i defined? I remember my host before able to do this. if there's a way, how to do that?

Reply With Quote


Sponsored Links
  #2  
Old 05-17-2009, 12:53 AM
x3calibers x3calibers is offline
Newbie
 
Join Date: Mar 2009
Posts: 29
to my knowledge you can restrict upload size of a file using php.ini. I dont think so to restrict file size while uploading through file manager.

Reply With Quote
  #3  
Old 05-17-2009, 01:02 AM
sharmaine1111 sharmaine1111 is offline
Web Hosting Master
 
Join Date: Sep 2007
Posts: 815
<< quote from removed post >>

If i change httpd.conf if cpanel updates, it will overwrite the changes i made right?


Last edited by writespeak; 09-25-2009 at 11:07 AM.
Reply With Quote
Sponsored Links
  #4  
Old 05-17-2009, 01:16 AM
x3calibers x3calibers is offline
Newbie
 
Join Date: Mar 2009
Posts: 29
it will update only if you use /scripts/rebuildhttpdconf. Not sure whether cpanel update runs this script

Reply With Quote
  #5  
Old 05-18-2009, 04:10 PM
cPanelDavidG cPanelDavidG is offline
Web Hosting Master
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 563
I recommend using the include files for items contained within a VHost.

__________________
David Grega
cPanel Technical Product Specialist

Reply With Quote
  #6  
Old 05-18-2009, 04:34 PM
Bullsoft - Thomas Bullsoft - Thomas is offline
Junior Guru Wannabe
 
Join Date: Jun 2008
Location: Lancashire, UK
Posts: 79
Quote:
Originally Posted by x3calibers View Post
to my knowledge you can restrict upload size of a file using php.ini. I dont think so to restrict file size while uploading through file manager.
Yeh you can, but you need to make sure to restart Apache

__________________
Bullsoft Hosting - Personal and Small Business Web Hosting
UK Servers - Founded in 2008!
24/7 Ticket Support ● 30 Day Money Back Guarantee ● Daily Off-site Backups ● CloudFlare ● Softaculous ● RVSiteBuilder
www.bullsofthosting.co.uk

Reply With Quote
  #7  
Old 05-20-2009, 01:25 AM
10gbus 10gbus is offline
WHT Addict
 
Join Date: May 2009
Posts: 149
<< quote from removed post >>

But this is not the actual answer for the question. Although if you edit httpd.conf , users still can UPLOAD the files using FTP/cPanel file manager.

So If I am correct, you need to change the FTP software's configuration file.

I don't know how to change the settings for cPanel file manager.


Last edited by writespeak; 09-25-2009 at 11:08 AM.
Reply With Quote
  #8  
Old 06-15-2009, 12:03 AM
sharmaine1111 sharmaine1111 is offline
Web Hosting Master
 
Join Date: Sep 2007
Posts: 815
Quote:
Originally Posted by cPanelDavidG View Post
I recommend using the include files for items contained within a VHost.
how do i do this?

__________________
All things work together for the good of those who love God - Romans 8:28

Reply With Quote
  #9  
Old 06-16-2009, 03:51 PM
cPanelDavidG cPanelDavidG is offline
Web Hosting Master
 
Join Date: Nov 2006
Location: Houston, TX
Posts: 563
Quote:
Originally Posted by sharmaine1111 View Post
how do i do this?
As of this week, we have some new documentation for this which is more straightforward than our prior documentation on doing this:

http://twiki.cpanel.net/twiki/bin/vi...e3/InsideVHost

__________________
David Grega
cPanel Technical Product Specialist

Reply With Quote
  #10  
Old 06-17-2009, 06:08 AM
sharmaine1111 sharmaine1111 is offline
Web Hosting Master
 
Join Date: Sep 2007
Posts: 815
Quote:
Originally Posted by John Mark View Post
But this is not the actual answer for the question. Although if you edit httpd.conf , users still can UPLOAD the files using FTP/cPanel file manager.

So If I am correct, you need to change the FTP software's configuration file.

I don't know how to change the settings for cPanel file manager.
Yes this is correct. Users can still upload.

how do i change the ftp software config to disallow uploading these file types?

im using pure-ftpd

__________________
All things work together for the good of those who love God - Romans 8:28


Last edited by sharmaine1111; 06-17-2009 at 06:15 AM.
Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Web Host Rackspace Adds FreeBSD 9, CentOS 6.3 Support to Cloud Servers Web Hosting News 2012-07-30 12:47:10
Web Hosting Control Panel cPanel and WHM Version 11.32 Adds Features, Fixes Web Hosting News 2012-04-08 11:51:35
Attracta SEO Tools Integrated into cPanel Control Panel Web Hosting News 2012-03-16 12:09:53
cPanel Launches Version 11.32 of Control Panel and Web Host Manager Web Hosting News 2012-02-15 12:46:33
Web Host NetHosting Announces Support for CentOS 6 Web Hosting News 2011-07-05 20:15:20


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?