Page 1 of 1

How to redirect the user after you block the site with Mikrotik firewall filter

Posted: Wed Jul 29, 2015 11:14 am
by cheater29
Hi i want to show the user an error message with html. When they enter a website that been block by the admin. For example facebook; if the user try to visit facebook it will direct them to a html page that say *content has been block, please contact your administrator*

The reason i m using firewall filter to block the certain website and instead of using web proxy to block is because i wanted the block to be individual.

So my question is. How to redirect the user after you block the site with Mikrotik Firewall filter. Can it be done ?

Re: How to redirect the user after you block the site with Mikrotik firewall filter

Posted: Wed Jul 29, 2015 1:09 pm
by mjz
hey .
u don't need to use firewall !
you want to block facebook.com . use dst nat and redirect the ip address of website to your HTML page IP .
put a dst nat rule in your nat table . use your subnet target as src add and facebook ip as des add . then go to the action tab and choose dst nat . put your warning page's IP in " to addresses " .

this is working on paper ! try it out and give me your result ...

Re: How to redirect the user after you block the site with Mikrotik firewall filter

Posted: Mon Jan 11, 2021 4:45 pm
by janda
Hi, is this working?

can i store basic html page under files on microtic?

i just want to inform user, site is blocked, by firewall rule/adress list