I don´t know how to match Headers but I tried this:
#URL http://islasparadisiacas.net/wp-content/uploads/2017/07/imagen-isla-islay.jpg
# Not Work
add name="islasparadisiacas.net" regexp="^.+(/wp-content/uploads/2017/07/imagen-isla-islay.jpg) Host: islasparadisiacas.net .*$"
# Not Work
add name="islasparadisiacas.net" regexp="^Host: islasparadisiacas.net .+(/wp-content/uploads/2017/07/imagen-isla-islay.jpg).*$"
# Work
add name="islasparadisiacas.net" regexp="^.*Host: islasparadisiacas.net.*$"
Hi!
this is my test solution, with web proxy. It is working. It deny all URL that contain word “origo”, but allow if URL contain word “rigo”
You do not necessary all line/command, sorry i not selected.
(This is a VPS on internet, i used 185.80.xxx.xxx:8080 to IE proxy)
My all config:
/tool user-manager customer
set admin access=own-routers,own-users,own-profiles,own-limits,config-payment-gw
/ip address
add address=185.80.xxx.xxx/24 comment=“added by setup” interface=ether1 network=185.80.xxx.x
add address=185.187.xxx.xxx/24 interface=ether1 network=185.187.xxx.x
/ip dns
set servers=8.8.8.8
/ip firewall nat
add action=masquerade chain=srcnat src-address=185.80.xxx.xxx
add chain=dstnat
add action=redirect chain=dstnat dst-port=80 protocol=tcp to-ports=8080
/ip proxy
set enabled=yes src-address=185.80.xxx.xxx
/ip proxy access
add dst-host=:rigo
add action=deny dst-host=:origo
/ip route
add comment=“added by setup” distance=1 gateway=185.80.xxx.xxx
/tool user-manager database
set db-path=user-manager
sequence is important:
In Web proxy Access tab first line (#0): add dst-host=:rigo,
second line (#1): add action=deny dst-host=:origo