Answer the question
In order to leave comments, you need to log in
Is it possible to find out in cpanel how many files the user has uploaded?
By ftp and filemanager in cpanel?
I want to write a script to protect against viruses, now viruses have become a habit in all php files for users to prescribe themselves.
Users rarely upload a lot of files, otherwise I would set a limit of 200 files, if someone deleted or uploaded 200 files, I block the user's account.
Answer the question
In order to leave comments, you need to log in
It is quite possible to use mod_quotatab for ProFTPD.
Only to be honest, it's of little use. Usually, evil hackers upload a couple of shells and deface the site.
I have never come across those that really rub all the files.
#!/bin/sh
for user in `ls -1 /home/`
do
if [ -d /home/$user/public_html ]
then
files=`find /home/$user/public_html -type f | wc -l`
if [ $files -gt 200 ]
then
echo "$user - $files files"
fi
fi
done
You can run cron with the desired frequency and receive reports by mail. Or add interaction with the panel to block the user.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question