Community discussions

MikroTik App
 
hurymak
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 06, 2014 1:31 pm

Custom response based on blocked DNS, how to do it?

Thu Feb 09, 2017 5:00 pm

Mikrotik rb951G 2hnd.
I set dns to OpenDNS family shield.

When try to go to adult website i see opendns response - that it is blocked.
How to replace this response and display that content is blocked but with custom html, maybe from hotspot directory....dont know..
but not made by OpenDNS company?
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Custom response based on blocked DNS, how to do it?

Thu Feb 09, 2017 5:59 pm

OpenDNS returns different IP addresses for blocked content. They have them documented:

https://support.opendns.com/hc/en-us/ar ... Addresses-

So you can redirect connections to these addresses to your server. It would work with external server for sure, but that might not be very practical if you don't have one. I'm not familiar with hotspot, so I can't tell if it can do it for you.

Who is online

Users browsing this forum: Irish9 and 86 guests