Hi,
Any good regex to stop all those advertisings in my server? The bots will send messages like (for example) , "come to ... irc.something.net "or similar addresses like that. I want to ban all the addresses with any combination.i.e. to ban irc.s0m3th1ng.net and so on as well. Any good regex for that? Thank you !
Need help again !!!
A regular expression matching all valid URLs with protocols http or ftp, as well as any usable portion of said urls:
EDIT: Corrected Escaping (I had it in my config, so the \s needed to be \\s. You may need to change them back, as I believe this is too long to be added as a spamfilter on IRC.)
Code: Select all
((ht|f)tp://)?((([a-z0-9_-]+:[a-z0-9_-]+@)?([a-z0-9_-]+\.)+(A[CDEFGILMNOQRSTUWZ]|ac.uk|AERO|ARPA|B[^CKLPQ\W\d]|BIZ|C[^BEJPQTVW\W\d]|COM|COOP|D[EJKMOZ]|E[CEGRSTU]|EDU|F[IJKMOR]|G[^\W\dCJKOVXZ]|GOV|H[KMNRTU]|I[DELMNOQRST]|INFO|INT|J[EMOP]|JOBS|K[EGHIMNPRWYZ]|L[ABCIKRSTUVY]|M[^\W\dBEFIJ]|MIL|MOBI|MUSEUM|N[ACEFGILOPRTUZ]|NAME|NET|OM|ORG|P[AEFGHKLMNRSTWY]|PRO|QA|R[EOUW]|S[^\W\dFPQSX]|T[^\W\dABEIQSUXY]|TRAVEL|U[AGKMSYZ]|V[ACEGINU]|W[FS]|Y[ETU]|Z[AMW]))|(([0-9]{1,3}\.){3}[0-9]{1,3}))(/[^ /\?]+)*([^ /\?]+)?(\?[^ ]*)?
Why the hell can't my signature be empty?
"Your message contains too few characters."
"Your message contains too few characters."
-
- Posts: 30
- Joined: Sat Jun 02, 2007 1:46 pm
-
- Posts: 30
- Joined: Sat Jun 02, 2007 1:46 pm
-
- Posts: 30
- Joined: Sat Jun 02, 2007 1:46 pm
Re: Need help again !!!
So how can i ban those "something" word from messages? It should only match something, s o m e t h i n g, s o m e t h i n g, or anything in between these words like ( , )or | any characters. And funnily i found that some spamfilter also catches
adfksomethingkdfa as well. How can I prevent this from happening?
adfksomethingkdfa as well. How can I prevent this from happening?