diff --git a/client/src/__locales/en.json b/client/src/__locales/en.json
index 17ebac91..02929a8e 100644
--- a/client/src/__locales/en.json
+++ b/client/src/__locales/en.json
@@ -386,7 +386,8 @@
"rewrite_not_found": "No DNS rewrites found",
"rewrite_confirm_delete": "Are you sure you want to delete DNS rewrite for \"{{key}}\"?",
"rewrite_desc": "Allows to easily configure custom DNS response for a specific domain name.",
- "rewrite_applied": "Applied Rewrite rule",
+ "rewrite_applied": "Rewrite rule is applied",
+ "rewrite_hosts_applied": "Rewritten by the hosts file rule",
"dns_rewrites": "DNS rewrites",
"form_domain": "Enter domain name or wildcard",
"form_answer": "Enter IP address or domain name",
diff --git a/client/src/components/Filters/Check/Info.js b/client/src/components/Filters/Check/Info.js
index 85a0ded3..9c9e85d7 100644
--- a/client/src/components/Filters/Check/Info.js
+++ b/client/src/components/Filters/Check/Info.js
@@ -5,6 +5,7 @@ import { withNamespaces } from 'react-i18next';
import {
checkFiltered,
checkRewrite,
+ checkRewriteHosts,
checkBlackList,
checkNotFilteredNotFound,
checkWhiteList,
@@ -38,6 +39,10 @@ const getTitle = (reason, filterName, t, onlyFiltered) => {
return t('rewrite_applied');
}
+ if (checkRewriteHosts(reason)) {
+ return t('rewrite_hosts_applied');
+ }
+
if (checkBlackList(reason)) {
return filterName;
}
@@ -75,7 +80,7 @@ const getTitle = (reason, filterName, t, onlyFiltered) => {
const getColor = (reason) => {
if (checkFiltered(reason)) {
return 'red';
- } else if (checkRewrite(reason)) {
+ } else if (checkRewrite(reason) || checkRewriteHosts(reason)) {
return 'blue';
} else if (checkWhiteList(reason)) {
return 'green';
diff --git a/client/src/components/Logs/index.js b/client/src/components/Logs/index.js
index 03153603..82cae6da 100644
--- a/client/src/components/Logs/index.js
+++ b/client/src/components/Logs/index.js
@@ -12,6 +12,7 @@ import {
isToday,
checkFiltered,
checkRewrite,
+ checkRewriteHosts,
checkWhiteList,
checkBlackList,
checkBlockedService,
@@ -170,6 +171,7 @@ class Logs extends Component {
const isFiltered = checkFiltered(reason);
const isBlackList = checkBlackList(reason);
const isRewrite = checkRewrite(reason);
+ const isRewriteAuto = checkRewriteHosts(reason);
const isWhiteList = checkWhiteList(reason);
const isBlockedService = checkBlockedService(reason);
const isBlockedCnameIp = originalAnswer;
@@ -221,6 +223,13 @@ class Logs extends Component {