It's basically code all over my site that powers that. You can see the login page here:
http://security.iceteks.com. It logs anything that is a security threat. I just need to use the function ScadaSend() within my site to "send" an alarm. For example ScadaSend("this is the alarm text",5,$_SERVER[REMOTE_ADDR]); where 5 is a critical alarm, 4 is high, 3 is so and so, 2 is not so bad and 1 is just information. (ex: someone opens an email that contains a tracker). This works similar to the US homeland security meter, but it's not always at 5.
Through this login, I can also add/remove bad sites from accessing here. For example, one of our ennemy forums will sometimes link to posts here, either to make fun of us or whatnot, so I block those requests through that, and it starts an alarm and blocks their IP. It does not really block it, it simply causes a message to be displayed on their screen saying they have been detected as trolls, and it logs an alarm each time. I also submitted that page on google, so recent IPs will be searchable on google and it will hit that page.
I had one where it was public, but I decided not to do that since sometimes I miss-type my password in there and I would not want my partially correct password in public.
But yeah, that setup is very useful. That's another thing I should make a distributable version of, but it's sort of hard to do, since all pages must have it, type of thing. Most of the pages on this site have a logger script that checks stuff such as referrers, and logs it if it's important, but in that logger there's also the scada function in case I ever want to use it in that particular page. The logger simply logs normal activity, such as google hits, for information purposes only.
So by the end of the day, I have like 3 and sometimes 4 different logs to look at. But only 1 of them is important for information, the rest is only do track down known malicious activity. (ex: when I saw that IP, I did a search and found more information such as where he came from, and it was well, weird. )
Archived topic from Iceteks, old topic ID:1119, old post ID:9914