String in Global Filters > Ignore text is not being ignored
Describe the bug String in Global Filters > Ignore text is not being ignored
Version 0.49.14
How did you install? Paid subscription
To Reproduce
Steps to reproduce the behavior:
- On Global Filters > Ignore text
- Add
config_nonceorhoneypotto the Ignore Text field - Trigger a check for source:https://www.simplevote.ca/carrieres/?no-cache
- See the line is triggered:
var gform_theme_config = {"common":{"form":{"honeypot":{"version_hash":"a3dcb1294aa952da9424f2838028ef70"},"ajax":{"ajaxurl":"https:\/\/www.simplevote.ca\/wp-admin\/admin-ajax.php","ajax_submission_nonce":"2a85118d55","i18n":{"step_announcement":"Step %1$s of %2$s, %3$s","unknown_error":"There was an unknown error processing your request. Please try again."}}}},"hmr_dev":"","public_path":"https:\/\/www.simplevote.ca\/wp-content\/plugins\/gravityforms\/assets\/js\/dist\/","config_nonce":"415c029d54"};
Example URL: https://lemonade.changedetection.io/intriguingly-suffices/edit/737b1a1d-853d-4ff7-a50b-eaee965c7669
Expected behavior I expect the line containing the strings in Ignore Text field to be ignored.
Screenshots
My General Filters screen:
The line being triggered:
hello, please write to us on the contact email address (see your signup email)
aaah you added the link to your hosted account, i see it, thanks
yeah so it will be "ignored" but it will still show up in the difference, its just that the change will not trigger a notification/change
does that make sense?
yeah so it will be "ignored" but it will still show up in the difference, its just that the change will not trigger a notification/change
does that make sense?
How is the Ignore Text field supposed to work, after all?
For my use case (monitor for malicious changes), it could be completely ignored and not flagged at all. But showing up in the diff with a different colour and not triggering a change would work as well.
How is the Ignore Text field supposed to work, after all?
It will ignore lines that match that text (those lines are not considered for change detection)
@dtrezubSV https://github.com/dgtlmoon/changedetection.io/issues/2997 it sounds to me like most people are getting confused by this, does this #2997 solve your issue?
https://github.com/dgtlmoon/changedetection.io/issues/2899
Another example:
I have honeypot in Global Filters > Ignore Text (see screenshot above). It correctly interprets it when I look at the preview for individual URLs, but it still triggers a change alert
Preview:
Change detected:
How is the Ignore Text field supposed to work, after all?
It will ignore lines that match that text (those lines are not considered for change detection)
The bug is that those lines are still triggering a change alert. I have examples where the only change in an alert is one that should have been ignored, so it was definitely an ignored text which triggered the alert.
here's one instance:
I have /\?v=\d/ in my Global Filters > Ignore Text
Here's the ONLY line being triggered:
This is the URL, where you can see there is no other line being flagged as changed: https://lemonade.changedetection.io/intriguingly-suffices/diff/8a605604-882d-4f1b-a096-f0a320c42317?from_version=1744887676#text
@dtrezubSV #2997 it sounds to me like most people are getting confused by this, does this #2997 solve your issue?
No. I believe my report is for a real bug. See my last comment above, please.
I added /\?v=\d/ as a global filter then some basic HTML to a test html on my server (as source:https://test-server......html)
grey means that it correctly ignores that whole line.
i changed the ?v=2222 to ?v=3333 and rechecked it and a change wasnt detected
so hmmm
@dtrezubSV do you have any options like "added" "removed" or "changed" set when it happened?
Thank you for looking into this!
@dtrezubSV do you have any options like "added" "removed" or "changed" set when it happened?
This is my full settings page for that URL. Do you see anything that would trigger the change detection?
hmm no... there is a test for the global filters which works fine also
but looking in your data i can see
# diff *txt
167c167
< <link href="https://www.simplyvoting.com/wp-content/themes/my-little-big-theme-child/style2.css?v=1744887677" rel="stylesheet"/>
---
> <link href="https://www.simplyvoting.com/wp-content/themes/my-little-big-theme-child/style2.css?v=1744922889" rel="stylesheet"/>
the last two snapshots - the only difference was that ?v=...
I'm finding this one hard/impossible to replicate
does it happen still?
in https://lemonade.changedetection.io/intriguingly-suffices/diff/3ec0692a-6fa0-42e4-9302-7c9a7f9f0009?from_version=1745334107#text
if you set the diff to word mode, its the name in iframe which triggers the change and you dont have a filter for that
Can you tell me what the goal of this watch is? you want to know when the html changes, or what are you doing in the big picture here? what do you do personally when the change happens? what are you watching for?
Can you tell me what the goal of this watch is? you want to know when the html changes, or what are you doing in the big picture here? what do you do personally when the change happens? what are you watching for?
I think I said this earlier, but I may not have explained it clearly.
Our goal is to detect unauthorized or malicious changes to our website. If a hacker gains access, they might modify a link or insert a script. These changes can be harmful. We need to detect them as soon as they happen.
To do this, I review every change that is included in an alert (red.green text). I check if it was intentional or if it might be a sign that someone hacked the site.
The reason this matters is that sometimes the alert includes changes I previously marked as "ignored." That means I told the system not to alert me about those specific changes, but it does anyway.
My problem is not about the use case itself — it's about the system not respecting the ignore settings. When I get an alert, I should not see changes that I have already marked to be ignored.
hmm no... there is a test for the global filters which works fine also
but looking in your data i can see
# diff *txt 167c167 < <link href="https://www.simplyvoting.com/wp-content/themes/my-little-big-theme-child/style2.css?v=1744887677" rel="stylesheet"/> --- > <link href="https://www.simplyvoting.com/wp-content/themes/my-little-big-theme-child/style2.css?v=1744922889" rel="stylesheet"/>the last two snapshots - the only difference was that
?v=...
This is what my bug report is about. Even if I explicitly told the system to ignore this line, it's still emitting an alert about that line.
Another example: https://lemonade.changedetection.io/intriguingly-suffices/diff/4cae4acc-a55d-469a-8054-e7fee7180fae#text
Setting in Global Filters > Ignore Text: /\?v=\d/
The two only lines the alert has highlighted in green/red are lines containing ?v=
Hmm so I increased the test to cover this situation and the test passes no problem..
So i'm wondering if its because of something else?
https://github.com/dgtlmoon/changedetection.io/blob/eb4cd35317ea0da16078efa4895b90840d3bd163/changedetectionio/tests/test_ignore_text.py#L262-L264
https://github.com/dgtlmoon/changedetection.io/blob/eb4cd35317ea0da16078efa4895b90840d3bd163/changedetectionio/tests/test_ignore_text.py#L171-L264