JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 02.03.2009, 08:08
Gemmor
Guest
 
Posts: n/a
Default Regex filter doesn't work

Hello!

I have a little idea that may help other people and me. My provider have three defferent IP types. When I used to reconnect, I get one of the following IP's: 84.xxx.xxx.xxx; 77.xxx.xxx.xxx; 87.xxx.xxx.xxx. The problem is when I connect to 84.xxx.xxx.xxx IP. I have a dramatic fall in download speed. Of course I talked to my provider's support, and these stupids just cannot do anything. So, my request is to able filter IPs on demand and automatically reconnect if the IP matched the filtered one. Also it will be very nice to show current user's IP on jDownloader's GUI.

Thanks and keep up a good work.
Reply With Quote
  #2  
Old 02.03.2009, 08:10
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,981
Default

This already works. You just need a new ip filter regex, and set your reconnect method to 100 retries..
Reply With Quote
  #3  
Old 02.03.2009, 08:12
Gemmor
Guest
 
Posts: n/a
Default

How do I get a new IP filter regex?
Reply With Quote
  #4  
Old 02.03.2009, 08:36
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,981
Default

config-> download & network -->advanced ->alllowed IP
I'm not such a regeax pro like scr4ve or dwd.


Code:
(84|77|87)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

Last edited by coalado; 02.03.2009 at 08:41.
Reply With Quote
  #5  
Old 02.03.2009, 08:46
Gemmor
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by coalado View Post
config-> download & network -->advanced ->alllowed IP
I'm not such a regeax pro like scr4ve or dwd.


Code:
(84|77|87)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
So, it's filtered IP's or allowed? I need to filter out only 84 ones. Another words, IP's that begins with 84 are bad IPs.

Last edited by Gemmor; 02.03.2009 at 08:50.
Reply With Quote
  #6  
Old 03.03.2009, 09:11
Gweilo's Avatar
Gweilo Gweilo is offline
JD Legend
 
Join Date: Mar 2009
Posts: 725
Default

Quote:
Originally Posted by Gemmor View Post
So, it's filtered IP's or allowed? I need to filter out only 84 ones. Another words, IP's that begins with 84 are bad IPs.
That's filter in. So
(84|77|87)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

includes all IPs beginning with 84, 77 or 87.

So if you only want 77 or 87, use:
(77|87)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

Also, I can't guarantee this will work, but I think

(^84)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

would give you IPs that DID NOT start with 84.
I'm not sure if the negation symbol ^ works on more than one symbol.
Perhaps that should be:
^(84)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

-- Try them and see.
Use a site like myip.dk to monitor your IP.
Reply With Quote
  #7  
Old 03.03.2009, 10:09
Gemmor
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Gweilo View Post
That's filter in. So
(84|77|87)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

includes all IPs beginning with 84, 77 or 87.

So if you only want 77 or 87, use:
(77|87)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

Also, I can't guarantee this will work, but I think

(^84)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

would give you IPs that DID NOT start with 84.
I'm not sure if the negation symbol ^ works on more than one symbol.
Perhaps that should be:
^(84)\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}

-- Try them and see.
Use a site like myip.dk to monitor your IP.
Yesterday I tried many options. I even learned the basics of Regular Expressions. It doesn't matter what I write in the field, nothing happens. The filter doesn't work at all. I even leaved the field blank and... nothing happened too.
Reply With Quote
  #8  
Old 14.03.2009, 21:42
Gemmor
Guest
 
Posts: n/a
Default

Regex filter doesn't work even after 0.4.936 update.
Reply With Quote
  #9  
Old 12.06.2009, 15:30
Gemmor
Guest
 
Posts: n/a
Default

Regex filter doesn't work even after 0.6.111 update.

Trying to allow IPs, that begin with 84 only:

\b([84])\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b

And nothing happens
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 16:59.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.