How to suspend user without suspendind cpanel account

faisikhan

Well-Known Member
Dec 12, 2011
86
0
56
Islamabad, Pakistan
cPanel Access Level
Root Administrator
Hi,

The best and the quicker solution is either to change the permissions of that user account to root with chown command

chown root:root public_html

OR you can do in that way also:

Create a .htaccess file and past the following lines in it:

order deny,allow
deny from all
allow from ip_address

Hope that will work for you!!
 

24x7server

Well-Known Member
Apr 17, 2013
1,912
99
78
India
cPanel Access Level
Root Administrator
Twitter
Hello,

Yes, I will suggest you use .htaccess options for your site and if you change the ownership of your public_html directory to root user your client can not access public_html directory through cPanel file manger and FTP
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

It's not possible to suspend an account without also suspending access to cPanel/FTP. You can utilize the .htaccess file to deny access to the website, but cPanel access will allow a user to remove that restriction.

Thank you.