From today, after updating the rules, all referral links that start with h ttps://1.envato.market/ are blocked by ad blockers. I checked in AdGuard and AdBlock. Probably in other blockers too.
The easiest solution seems to be to wrap the links in URL-Shorter redirects, like bitly com and others.
But as far as I know, the impact will not count referrals from redirects. Can anyone confirm or deny this information?
Because now all my landing pages have turned into beautiful but useless bricks that lead nowhere.
Here is a small WordPress plugin t42-fix-envato-impact.zip - Google Drive
It adds javascript to the page, finds all links of the “1.envato.market” type, changes the URL so that it does not fall under the filters and, when clicked, processes to the correct URL. No backdoors or backlinks.
This is a temporary solution. I am looking forward to the response from the envato team, with a recommendation on what to do.
@Laborator, would you be able to share the URLs where this is happening.
Feel free to email me examples of this so I can escalate to Impact - emile.ben-atar@envato.com
Thank you for raising this, and of course for your cooperation as this is investigated.
That means that people reported impact links to ad-blockers, therefore, they were added to the default ad-block list. I think this is something only Envato can request removal of. Try filing a message to ad-block database stating these are not ads. It worked for some of my customers that had the same issues with their sites and drove me crazy trying to find out why.
@emile_b, I think you guys have much more power in reporting this as a mistake to the devs of Ad Blockers (link)
Heya guys! - @Laborator, @merkulove@42Theme Until this is solved, I found a way to circumvent AdBlockers. Please note, this should only be used as a temporary solution as this can degrade performance if you use a lot of links in a page.
document.addEventListener('DOMContentLoaded', () => {
'use strict'
var allowAffiliate = false;
if(!allowAffiliate){
//Getting all hrefs that match Envato's Affiliate Link
var anchorsDisabled = document.querySelectorAll('[href^="https://1.envato.market/"]');
//Replacing all HREFS with data-envato.
//This will make buttons hidden by ad-block visible again
anchorsDisabled.forEach(function(e) {
var hrefs = e.getAttribute('href');
e.setAttribute('data-envato', hrefs);
e.setAttribute('href', '#');
});
//When clicking data-envato buttons, take the link from the
//data attribute, put in the href, and direct the browser to it.
var dataEnvato = document.querySelectorAll('[data-envato]');
dataEnvato.forEach(el => {
el.addEventListener('click', (e) => {
var envatoLink = el.getAttribute('data-envato');
document.location.href = envatoLink,true;
});
});
}
});
TL;DR - The code above loops through all your links. If it finds links that match Envato’s Affiliates (https://1.envato.market/) it will replace them with href="#" and move the link to a data-envato=“https://1.envato.market/”. When you click the button, then the JS function changes document.location with your affiliate link. Easy and quick fix for the time being.
Tested and works 100%! Copy the code in any JS file that executes on your site … your affiliate links will work again!
NOTE - Don’t attempt _blank or window.open(). Safari on iOS, Firefox will not open links and Chrome will attempt opening a pop-up. This is what we’re stuck with at the moment.
PS: If you keep this code, once @BenLeong or @emile_b announces the issue has been resolved, just set allowAffiliate = true and this will revert your page to the default settings. Variable is there just in case it needs reactivating in the future!
Honestly, I have never used adblockers. Somebody, please provide me the link for the most popular adblocker. I want to test before and after solutions from this topic.
location.href can take only one parameter and only a string.
You probably wanted to make the event listner passive and true should be the third parameter in addEventListener.
Or is it some kind of JS magic unknown to me?
It’s not JS magic, but, if you pay close attention to the code, envatoLink is a string, which is the value pulled from the data-envato attribute that’s moved from the href when the forEach loop fires. Give it a shot. For me it works like a charm and my server using this method since yesterday. Impact link clicks started growing again! That’s the magic!
@Laborator Can I kindly ask you to test this again (with an adblocker enabled, we are receiving reports the issue (or part of it) has remedied itself
Thanks
Emile
@emile_b I can confirm that the problem has disappeared with the new ad-blockers rules list(13 October or later). Tested in Chrome(AdBlock, AdGuard) and Firefox(AdBlocker Ultimate)
I think the case can be considered solved, given that all blockers use the same lists of rules.
Thank you for the fast solution