Security pros warned of the "highly effective" scam last month.
Scammers had been tricking people into divulging their passwords by directing them to lookalike login pages that tripped no alarms in the victim’s web browser. Security researchers at WordFence, a company that makes security tools for WordPress sites, last month warned that the phishing effort was “having a wide impact, even on experienced technical users.”
No longer. Google has responded to the problem with an update to its Chrome browser. In the new version, released earlier this month, the browser’s address bar warns people when they have been served a page that uses the phishing trick.
Get Data Sheet, Fortune’s technology newsletter.
While the browser previously indicated nothing suspicious about the sham account sign-ins, the revamped version now displays “not secure” in such instances. (It is still incumbent upon the Gmail user to heed that warning, of course.)
Scammers had been sending people fraudulent email messages from the compromised accounts of known contacts. Inside, the notes included embedded images designed to look like PDF attachments that, when clicked, opened bogus Gmail login pages.
On the fake login pages, everything would look perfectly normal, except for a bit of unusual text, “data:text/html,” preceding the usual “https://.”
The scammers had been exploiting a distinction between a URL and the less common “data URI.” The former, more familiarly known as a web address, points to a page’s location on the web, accesses it, and lets people interact with it; a “data URI,” on the other hand, embeds a file.
In this case, the data URI ran a hidden program the served up phishing pages. Because Google Chrome failed to flag these pages as potentially dangerous, many people did not realize the hazard of entering their username and passwords—which the attackers would promptly nab, and then use to hijack more accounts.
Emily Schechter, a security product manager for Google Chrome, acknowledged the phishing scheme in a statement provided to Fortune on Monday. In it, she explained the company’s fix and hinted at stronger countermeasures to come.
Alluding to that “further action,” a Google spokesperson said that Google has plans to prevent redirections to “data” sites entirely in future versions of the browser, “so the action will be even more aggressive fairly soon.”
For now, Chrome’s in-browser warning reads “not secure” alongside a gray circle, as pictured below. (Eventually, the company plans to place a more flamboyant red triangle in the browser bar for all sites not fully protected by “https.”)
Mark Maunder, CEO of WordFence and who first raised the phishing scam to Fortune’s attention in a blog post last month, said he was satisfied with Google’s remedy. “Chrome has resolved this issue to my satisfaction,” he wrote Friday in an update.
In sum: make sure, if you use Chrome, that your browser is up to date. Steer clear of “not secure” web pages (in addition to ones not protected by “https”) when entering credentials. And always triple check to make sure you’re transacting with the intended website before entering a password.