Checking to see if an html link is valid - 09/12/03 03:15 AM
I am writing a quick bot to check to see if a user is a spam bot we are gettin plagued with. these spam bots message everyone in the channel "come watch me on my webcam!" and has a link that is http:// + their hostmask + /me.mpg
i have the code to get their hostmask when they connect to my network:
now i need to know how to check to see if the address http://theirhostmask/me.mpg is valid or not. how do i do that?
thanks for your help!
i have the code to get their hostmask when they connect to my network:
Code:
on *:snotice:*client connecting*: { if ($6 == on) { /whois $9 } if ($6 == at) { /whois $8 } } raw 378:*: { set %host $remove($6, @) set %host1 $remove(%host, *) }
now i need to know how to check to see if the address http://theirhostmask/me.mpg is valid or not. how do i do that?
thanks for your help!