Site blocking and redirect

Good day, i am new to configuring RouterOS.
Could you help me block and redirect specific sites.
I see it this way, when site’s IP adress is blocked, user is redirected to http://www.xyz.com/bad
It would be great if solution would be configurable by requesters IP adresses (for example, i don’t want to block my computer from accessing these sites).

You need to use the built in web proxy to start with. Then make use of an Access rule to block certain websites. Once you’re happy with this, add a rule to allow your IP but not any other.

/ip proxy access add dst-host=www.notallowed.com src-address=!192.168.0.1 action=deny redirect-to=www.xyz.com/bad

Try this.