Quick fix to stop Chrome detecting phishing

Apparently Google isn't happy about
https://html.brow.sh/mail.google.com URLs.
This commit is contained in:
Thomas Buckley-Houston 2018-07-09 13:05:19 +08:00
parent 4b9ff90933
commit 384688302e
2 changed files with 5 additions and 1 deletions

View file

@ -91,6 +91,10 @@ func handleHTTPServerRequest(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, message)
return
}
if (strings.Contains(r.Host, "mail.google.com")) {
http.Redirect(w, r, "https://html.brow.sh", 301)
return
}
urlForBrowsh = "https://www.brow.sh/html-service-welcome"
}
if urlForBrowsh == "robots.txt" {

View file

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Browsh",
"version": "1.2.0",
"version": "1.2.1",
"description": "Renders the browser as realtime, interactive, TTY-compatible text",