|
Donation/Premium |
|
 |
|
|
|
|
|
|
|
Survey |
|
 |
|
|
|
|
|
|
|
 |
 |
| View previous topic :: View next topic |
| Author |
Message |
IP: 199.123.*.*
Guest
|
Posted: Mon Nov 03, 2003 2:18 pm Post subject: How to add filters pasted from forum? |
|
|
I tried to cut and paste filters I find her in my filter file. I use Notepad and turn word wrap off. I eliminate the line breaks (I think). But MWP does not recognize the pasted filter. I open the filter text file back up and the new filter is gone.
Is there an easy way to "decode" the filter so I can add it through the filter Add function?
Gotta be something simple.
Ken
|
|
| Back to top |
|
 |
denn988
Guest IP: 66.44.*.*
|
Posted: Mon Nov 03, 2003 2:39 pm Post subject: Re: How to add filters pasted from forum? |
|
|
| Anonymous wrote: | I tried to cut and paste filters I find her in my filter file. I use Notepad and turn word wrap off. I eliminate the line breaks (I think). But MWP does not recognize the pasted filter. I open the filter text file back up and the new filter is gone.
Is there an easy way to "decode" the filter so I can add it through the filter Add function?
Gotta be something simple.
Ken |
First....is MWP running when you do the paste into 'filters.txt'???
If it is, that is your problem. Shutdown MWP first, then paste the filter in there. Make sure that you don't have any extra CR's or LF's in the file, either between filters or after the last filter.
Save the file...then restart MWP.
Maybe that will help.
As for decoding the filter....the best thing I can tell you is to look at what the filter is doing.
Example:
[enabled],"IANA RESERVED [HIDE]","IANA RESERVED",180,AND,Hidden,Delete,TakesPrecedence,EntireHeader,containsRE,"(?# list of IP blocks reserved by IANA - must be updated as required )^Received: from [^[]*?\[([1257]|2[37]|3[1679]|4[129]|5[089]|7\d|8[3-9]|9\d|1[01]\d|12[0-6](?# note to prevent scrolling during post -remove)|17[3-9]|18[0-79]|19[07]|22[3-9]|2[34]\d|25[0-5])(\.[1-2]?\d?\d?){3}\][^;:]*?"
Copy this filter into your 'filters.txt' file as instructed, save the file and then open MWP. Goto your filter sidebar (ctrl+F7 if not open) and select the 'Filters' TAB. You should see the filter "IANA -RESERVED [HIDE]" in the list.
Select that filter and click 'EDIT'. This will bring up the EDIT FILTER dialog box.
You can then see how the above filter is decoded from the 'filters.txt' file.
I would go on and explain how to decode it, but if you just look at the text in the file and compare it to what is shown in the dialog box you should be able to see what keywords in the text file correspond to functions in the dialog box, and how the expressions appear.
|
|
| Back to top |
|
 |
tekwrite
Guest IP: 199.123.*.*
|
Posted: Mon Nov 03, 2003 2:49 pm Post subject: |
|
|
Thanks! Very helpful. And yes I was running MW when I tried to add the filters!
Ken
|
|
| Back to top |
|
 |
|
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001 phpBB Group
|