DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Web Log Filter - discard and replace  (Read 14,169 times)

btran007

  • Participant
  • Joined in 2009
  • *
  • Posts: 1
Web Log Filter - discard and replace
« on: July 07, 2009, 03:31 PM »
Hello All,

I am new newbie.  I am testing Web Log Filter but I have not successfully create a filter.  I want to remove all image references by using NoImages.txt rules but the lines containing the images (.jpg) still remain even though @Action: discard/replace.  How do you remove all image references and keep only the things you want?

Thank you in advance,
btran

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Web Log Filter - discard and replace
« Reply #1 on: July 07, 2009, 04:33 PM »
i seem to be the only person on the planet who ever used Web Log Filter that it gave me a real fright to see a question about it.. definitely not one of my more popular tools.

i actually recently used Web Log Filter for the first time in a while and it took me a few tries to remember how to use it.. it's not the most obvious thing.  but it does work and serve a useful purpose.

one thing that tripped me up was remembering that it doesn't want to modify the original file, but create a new output file.

can you first make sure you can figure out how to get it to process your file and create a new output file, and then experiment a bit with getting it to reject lines.. once you get that working, let me know again if you still have trouble blocking images.

And definitely take a look at the included NoImages rule carefully -- it's just a sample and it may not cover all cases, etc.

Original address: https://www.donationcoder.com/forum/index.php?topic=19085.0