Community discussions

MikroTik App
 
DVMi
just joined
Topic Author
Posts: 10
Joined: Mon Sep 12, 2016 1:07 pm

Hotspot advertising redirect and AdBlock

Mon May 31, 2021 3:52 pm

Hi.

I set up advertisement in Mikrotik Hotspot:
Instead of opening new popup page, I load advertisement into radvert.page via JavaScript.
Then, when user clicks the button, I load Mikrotik page, that should redirect to advertisement page (e.g. http://<Hotspot-IP>/advert?dst=http://somesite.com). Load occures via JS, too.

On the smartphones it work well.

But on the desktops I faced the problem, that browsers with AdBlock extention installed block load of URL "http://<Hotspot-IP>/advert" due to it's name.

I tried to visit advertisement page to which this Mikrotik page redirects to. No luck - transparent proxy doesn't "see" this request.
Also I didn't find the way to change URL or Mikrotik page, to avoid matching AdBlock filters.

How can I change the URL of Mikrotik page "http://<Hotspot-IP>/advert" to not match AdBlock filters?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 3:54 pm

Do not advert, is better and you resolve instantly this problem.

Official MikroTik reply:
viewtopic.php?t=149441#p735876
 
DVMi
just joined
Topic Author
Posts: 10
Joined: Mon Sep 12, 2016 1:07 pm

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 4:57 pm

Do not advert, is better and you resolve instantly this problem.

Official MikroTik reply:
viewtopic.php?t=149441#p735876
Just make this page name customizable. That's all I need.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 5:00 pm

And no-one do it.
Read official reply as posted before
 
DVMi
just joined
Topic Author
Posts: 10
Joined: Mon Sep 12, 2016 1:07 pm

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 5:14 pm

And no-one do it.
Read official reply as posted before
I already have read. They just "suggest". I want to deploy and test.
Actually, I already doing it and found obvious problem, that can easily be fixed.
And I ask for such fix.
 
DVMi
just joined
Topic Author
Posts: 10
Joined: Mon Sep 12, 2016 1:07 pm

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 5:19 pm

And no-one do it.
Read official reply as posted before
By the way, Mikrotik Hotspot redirects http to advert page very well.
The solution to show ad by popup new window was wrong. Ad should be shown at the first page (radvert.html). And it works quite good.

I repeat, smartphones receive periodic ad page vell. Help me fix the URL of redirect to ad, that is hardcoded (as it seems to me).
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 5:36 pm

This is user forum, ask MikroTik directly support@mikrotik.com
 
DVMi
just joined
Topic Author
Posts: 10
Joined: Mon Sep 12, 2016 1:07 pm

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 5:50 pm

This is user forum, ask MikroTik directly support@mikrotik.com
Thanks, I did.

Maybe, someone knows where this settings is...
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Hotspot advertising redirect and AdBlock

Mon May 31, 2021 6:03 pm

Yes, I know, it's inside the file "bndl\hotspot\nova\bin\hotspot" but with that information you do nothing.
 
DVMi
just joined
Topic Author
Posts: 10
Joined: Mon Sep 12, 2016 1:07 pm

Re: Hotspot advertising redirect and AdBlock

Tue Jun 01, 2021 12:11 pm

Have found workaround.

I placed php script on my server (it shows advertisements, it's in Walled Garden list), that redirects client's browser to Hotspot advert page:
----------
<?php
header("Access-Control-Allow-Origin: *");
header("Location: http://<Mikrotik-Hotspot-IP>/advert");
----------

URL does not match AdBlock filter, redirected URL "http://<Mikrotik-Hotspot-IP>/advert" seems not to be checked by AdBlock.

It's a temporary solution, of cource. Mikrotik team ought to make advert redirect page name customizable.

Who is online

Users browsing this forum: coreshock, Google [Bot], GoogleOther [Bot], johnson73, StephenDig and 82 guests