How to create a Gmail filter which blocks emails that have HTML embedded images from…
- User
How to create a Gmail filter which blocks emails that have HTML embedded images from stackcdn.com
- Assistant
To create a Gmail filter that blocks emails containing HTML embedded images from
stackcdn.com, follow these steps:- Log in to your Gmail account and click on the gear icon in the upper right corner.
- Select See all settings from the dropdown menu.
- Go to the Filters and Blocked Addresses tab.
- Click on Create a new filter.
- In the From field, leave it blank, as we're not targeting specific senders.
- In the Has the words field, enter the following:
has:picture src:stackcdn.comThis will match emails that contain HTML images with a
srcattribute containing the domainstackcdn.com. 7. Click on Create filter. 8. In the next screen, select the action you want to take on the matched emails. You can choose to: * Delete it: permanently delete the email. * Mark as spam: move the email to the Spam folder. * Apply the label: assign a label to the email (e.g., "Blocked Images"). 9. Click on Also apply filter to [X] matching conversations to apply the filter to existing emails in your inbox. 10. Click on Create to save the filter.The filter will now block emails containing HTML embedded images from
stackcdn.com. Note that this filter might not catch all cases, as some emails may use different methods to embed images or obfuscate thesrcattribute.To further refine the filter, you can also use the
has:htmlkeyword to target emails that contain HTML content, like this:has:html has:picture src:stackcdn.comThis will match emails that contain HTML content and have an image with a
srcattribute containing the domainstackcdn.com.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.