Results 1 to 9 of 9
Thread: Limiting PHP "Nobody"
-
06-07-2005, 07:32 AM #1WHT Addict
- Join Date
- Feb 2005
- Posts
- 104
Limiting PHP "Nobody"
Hi All,
I have been searching and cannot seem to find a way of limiting the amount of e-mails allowed per hour from the PHP "nobody" account.
I have the SMTP limit set to 300 per domain per hour, but that is of course not applicable for the PHP "nobody"... Anybody know how to do this?
AppreciatedMP Hosting
http://mphosting.net
-
06-07-2005, 10:55 AM #2Junior Guru
- Join Date
- Mar 2004
- Location
- Greater Chicagoland
- Posts
- 181
A semi-easy way I can think of is to have your PHP email script(s) communicate with a database. Every time an email is sent it will insert a row into the database with a timestamp (logging the IP would be smart too). Before the email is sent the script would query the database and make sure that there have not been X_NUMBER of emails sent in the last hour. I said logging the IP would be smart because the script could also make sure one IP is not abusing the email script.
-
06-07-2005, 11:52 AM #3Newbie
- Join Date
- Feb 2005
- Posts
- 13
What you want to use is suPHP or phpsuexec and have your scripts run in the context of the cPanel user owning the website.
Arun
-
06-07-2005, 12:05 PM #4WHT Addict
- Join Date
- Feb 2005
- Posts
- 104
Originally posted by security4all
What you want to use is suPHP or phpsuexec and have your scripts run in the context of the cPanel user owning the website.
ArunMP Hosting
http://mphosting.net
-
06-07-2005, 12:09 PM #5Newbie
- Join Date
- Feb 2005
- Posts
- 13
consider suPHP as a less-picky alternative.
arun
-
06-07-2005, 12:15 PM #6WHT Addict
- Join Date
- Feb 2005
- Posts
- 104
Originally posted by security4all
consider suPHP as a less-picky alternative.
arunMP Hosting
http://mphosting.net
-
06-07-2005, 12:52 PM #7Newbie
- Join Date
- Feb 2005
- Posts
- 13
sure - but e-mail sales@serversafety.com and one of the team will give you a better perspective of what's possible.
arun
-
06-07-2005, 08:01 PM #8Web Hosting Master
- Join Date
- May 2003
- Location
- Florida
- Posts
- 902
What you want is Mailmon. It does exactly what you are asking.
Edit to add link:
You can get the script at: http://www.webhosting-tools.com/view.cgi/MailMon
-
06-08-2005, 02:53 AM #9WHT Addict
- Join Date
- Feb 2005
- Posts
- 104
Originally posted by Dacsoft
What you want is Mailmon. It does exactly what you are asking.
Edit to add link:
You can get the script at: http://www.webhosting-tools.com/view.cgi/MailMonMP Hosting
http://mphosting.net