Fix: Chrome Detected Ususual Code on this Page and Blocked it

Some browser errors happen because of malware

by Megan Moore
Megan Moore
Megan Moore
Megan is a Windows enthusiast and an avid writer. With an interest and fascination in all things tech, she enjoys staying up to date on exciting new developments... read more
Fact checked by Alex Serban
Alex Serban
Alex Serban
Browser & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • Users have reported receiving the error: Chrome detected unusual code on this page and blocked it when trying to enter information in forms.
  • This error is associated with Chrome's XSS protection and will block code with potential malware in it.
  • The XSS protection can be disabled in Chrome's properties and will allow Chrome to bypass the error.
Feature image Chrome detected unusual code error.
Strugling with your current browser? Upgrade to a better one: OperaYou deserve a better browser! 350 million people use Opera daily, a fully-fledged navigation experience that comes with various built-in packages, enhanced resource consumption and great design. Here's what Opera can do:

  • Easy migration: use the Opera assistant to transfer exiting data, such as bookmarks, passwords, etc.
  • Optimize resource usage: your RAM memory is used more efficiently than in other browsers
  • Enhanced privacy: free and unlimited VPN integrated
  • No ads: built-in Ad Blocker speeds up loading of pages and protects against data-mining
  • Gaming friendly: Opera GX is the first and best browser for gaming
  • Download Opera

Google Chrome is one of the most popular browsers out there because of its multitasking abilities and performance. However, users have reported receiving the error: Chrome detected unusual code on this page and blocked it. Here are our solutions to fix this issue.

Why am I getting the Chrome detected unusual error?

The error: Chrome detect unusual code on this page and blocked it is an issue associated with XSS protection in Chrome. The error occurs to protect your personal information when filling out forms in Chrome.

Chrome detected unusual code on this page and blocked it error.

Google has this error because there is a chance that there may be some malware in the XSS script, but in blocking the code they also prevent secure code. For more information on how to avoid browser attacks, we have a guide for that.

How can I fix the Chrome detected unusual code error?

1. Use a different browser

Browsers like Microsoft Edge, Firefox, and Opera do not block embed code and thus this error will not occur. We recommend using Opera Browser as if offers some of the best security features, like a free built-in VPN and ad blocker.

Use Opera to avoid errors.

Opera also lets users know if the website they are visiting is secure with HTTPS certification that can be found in the address bar. That way, users know that it’s safe to enter personal information on that site.

Opera Browser

Browse securely using Opera’s free VPN and avoid unusual code errors.

2. Check for updates

  1. In Chrome, click on the three dots in the top right corner and select Settings. Open Chrome Settings.
  2. Click About Chrome to reveal any necessary updates. Check for updates in Google Chrome to fix the error chome detected unusual code and blocked it.
  3. Update your browser if prompted.

An out-of-date browser can lead to many issues, one of which is the unusual code error. Regularly check for Chrome updates if it’s not set to automatically update.

3. Disable XSS protection

  1. Click on the Start menu and search for Google Chrome.
  2. Right-click on Google Chrome and click Open file location. Open Chrome file location.
  3. Select Google Chrome and then right-click and select Properties. Open Chrome properties.
  4. Locate Target and add -disable-xss-auditor to the end of the current text. Disbale XSS auditor to fix chrome detected unusual code and blocked it error.
  5. Click Apply and restart Chrome.

By disabling XSS protection, Chrome will ignore any XSS errors and thus remove the unusual error code from occurring.

We hope one of the above solutions helped solve the error: Chrome detected unusual code on this page and blocked it. Let us know in the comments which solution worked for you or if you have another solution that worked and isn’t mentioned in this article.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: