Jump to content

Is it possible to log usage of a function?


mysteron

Recommended Posts

Hi.

I have RHEL 4 on a server, and on it I have the latest version for RHEL4
of php installed (4.3.9-3.22) installed. I'm running it in safemode, and
have disabled some functions such as "system" aso...

On this server I am experiencing a spam-hole somewhere in a script that
a user has on his/her webpage. Now I'm wondering if it is possible to
log usage of a function? If so how.

Please help, all feedback and help in finding the spam generating script
will be greatly appreciated  :)


With best X-mas wishes,
/mysteron
[quote author=steelmanronald06 link=topic=119844.msg491199#msg491199 date=1167006702]
inside the function put one of two things:

1)  At the end of the function have it send an email with ip address and other relevant info

2)  Have that same information written to a text file instead of email.
[/quote]

Thank you for your reply.

The problem is that I am not an author of the scripts the scripts that the users use on their websites. I am just a server admin trying to find the homepages that spam is getting through on my server. This is why I was wondering if it is possible to log the usage of for example the "mail" function on my server? I could of course keep on cross checking maillog & access_log, but that is taking too much time.


thx,
/mysteron

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.