help with regex

These are old archives. They are kept for historic purposes only.
Post Reply
Toni
Posts: 4
Joined: Wed Oct 08, 2008 5:08 pm

help with regex

Post by Toni »

hi all

ok thats my question

i have this regex

^(.+)!.+@.+:\1$
witch stops clones with same name and realname

but the problem is

now is new script around wich has been used like this

example nickname toni and realname >> Toni (T) with big leter

i was thinkin can be done somthing like [a-zA-Z] on this code to catch big leters to

regard
SLipKnOt
Posts: 42
Joined: Sat Apr 10, 2004 6:43 pm
Location: Bangladesh , dhaka
Contact:

Re: help with regex

Post by SLipKnOt »

Try this one.. it might work ^(.+)!.+@.+:(?i)\1$
./SLipKnOt --help
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: help with regex

Post by Stealth »

Unreal's regex matching is already case-insensitive by default.

You simply just need to add onto the end of the regex what your flooder is using: ^(.+)!.+@.+:\1 \([a-z]\)$

Also, if you are having such a problem with flooding that you need a new regex every time they change scripts, you should run a BOPM using DroneBL (http://dronebl.org) and ProxyBL (http://proxybl.org). Using those 2 databases combined will stop 99% of malicious connections to your server before they can even do anything to flood. The connections that get through you can report to DroneBL to help other IRC admins stop floods on their networks as well. You can get BOPM here http://wiki.blitzed.org/BOPM, and my example configuration for using BOPM with Unreal here http://tinyurl.com/ycuedg6
Izv143
Posts: 17
Joined: Fri Feb 13, 2009 11:50 pm

Re: help with regex

Post by Izv143 »

Stealth wrote:Unreal's regex matching is already case-insensitive by default.

You simply just need to add onto the end of the regex what your flooder is using: ^(.+)!.+@.+:\1 \([a-z]\)$

Also, if you are having such a problem with flooding that you need a new regex every time they change scripts, you should run a BOPM using DroneBL (http://dronebl.org) and ProxyBL (http://proxybl.org). Using those 2 databases combined will stop 99% of malicious connections to your server before they can even do anything to flood. The connections that get through you can report to DroneBL to help other IRC admins stop floods on their networks as well. You can get BOPM here http://wiki.blitzed.org/BOPM, and my example configuration for using BOPM with Unreal here http://tinyurl.com/ycuedg6
Can u give few tips for them, i do have BOPM and both of those databases but still lot of proxies pass it. And problem is it is hard to find any help for BOPM .
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: help with regex

Post by Stealth »

Knowing the source of the proxies is a good portion of the battle. If you know the source you can report them to blacklists, or load different blacklists based on the kinds of proxies they are.

Are you sure these are proxies and not Tor exit servers? Get the IP of one and Google it, which will usually tell you what it is.

If it is a Tor exit server, load a Tor blacklist in your bopm.conf. If you find a website that lists it with a bunch of other proxies you can give the site to ProxyBL for scanning and checking, and/or get a RPC key for DroneBL and submit the IPs there.
Izv143
Posts: 17
Joined: Fri Feb 13, 2009 11:50 pm

Re: help with regex

Post by Izv143 »

Stealth when I go on google and type those IPs it says they are Proxy, but those scanners don't pick them for some reason :|
Toni
Posts: 4
Joined: Wed Oct 08, 2008 5:08 pm

Re: help with regex

Post by Toni »

this is how is goin to be right ? ^(.+)!.+@.+:\1\([a-z]\)$ or ^(.+)!.+@.+:\([a-z]\)$

which one of this ?

regard
Post Reply