instead of a block action you could try to use something like Stop Cycle, but combine it with an event that removes the entire body. It will case the resulting page to be entirely white. The problem with this is that you will no longer see a block page if you access that specific URL directly.
I would try something like IF the category is "Advertisment" AND there is a "Referer" header, THEN remove the body. This should work for embedded objects, but if you call a new URL from the location bar you should see the normal block page.
I played with this a little but it doesn´t seem that removing the body works. In my tests the website was still able to load the ads. I have now tried to use a blank error template, which seems to work a little better.
You can try to create a blank template as well (requires a new schema). Create a new block setting and hit Add at the "Collection" Drop Down:
Use "Blank" as the name and pick auto for the file name. Click Save&Edit:
In the Editor open "index.html" in the file view. Add a blank HTML skeleton and click "Save Template Changes":
Now you get back to the "Edit Settings" dialog. Click "Add" to add a template:
Choose "Blank" as a name, "Fallback" as a language, check "HTML" and click Save&Edit:
Just click "Save Tempalte Changes" without adding anything.
Settings should now look like this:
Use this new setting with a rule in the URL Filter such as this:
Note that for the referer header you should use "Header.Request.Exist" instead of "Header.Exist"!
- Original Block Page:
- New Blank Blockpage:
If you see a "Error 403" something instead of the blank area, make sure you have correctly added the blank HTML consturct into the "index.html" as shown above.
I hope this helps.
I have to thank you for this post. I've been dealing with users complaining about the block page for embedded ads. I was going to embark on trying to do this exact thing this week.
That did the trick!
Thanks for your detailed response.
Is there any way to combine this with the HTML Opener (or something else) to actually remove the space the ad originally took up on the page? Something similar to what the Ad-Block-Plus firefox add-on does, except done at the gateway level instead of the browser level?
The intent would be for the page to be formatted nicely in addition to blocking/removing the ads.
For youtube you can use something like this:
This will remove the iframe which actually loads the ads and "reserves" the space on top of the page. This example is very specific to Youtube, since there is not really a "global" approach. You could try removing all iframes which have an id which contains "ad" or something similar, but there is a high risk for false positives.
I'm looking more for ways in which the various adblock lists can be imported into MWG. Anyone have any interesting ideas?