Some Chrome and Edge users will be blocked from seeing their browser source code

Google Chrome
(Image credit: Monticello / Shutterstock)

IT administrators will soon have the power to block access to a web page's source code for some users of the world's top browsers.

Both Google Chrome and Microsoft Edge will be introducing the feature, which looks to fix a longstanding bug in the Chromium source code that could let users view restricted URLs.

However the change won't affect all users, but instead mainly devices bought and owned by education enterprises such as schools, colleges and universities.

Code block

The change, reported by 9to5Google, will also affect users of Chrome Enterprise, and looks to fix a long-standing issue troubling educational users and admins alike.

Users have long been able to view the source code of a webpage by tapping CTRL+U, or right-clicking anywhere on a page and selecting "View page source". Although this can be useful for developers, code-heads or just the curious, reports have claimed that doing so on some educational exam sites can sometimes reveal test answers, especially when using Google Forms.

Now, Microsoft says it has come up with a fix that it says can stop the option to view a page's source code if a particular website is on an organization’s blocklist.

The fix can also block the ability to view source code entirely if desired, and when paired with a separate existing policy, can also stop the use of Chrome DevTools entirely.

The change probably won't be seen publicly for some time, as it has only just been added to the Chromium source code, but future versions of Edge and Chrome could well introduce source code-blocking features within the next few product release windows.

However it's likely that the feature will only be present in highly-controlled use cases, such as education, for now.

The news could boost Microsoft Edge's user base in educational establishments, increasing its rising market share. Recent data has shown that Edge is beginning to establish a lead over great rival Firefox, holding 3.99% of the market - meaning the browser’s share has increased by roughly a third since this time last year.

These are the best student laptops around today

Mike Moore
Deputy Editor, TechRadar Pro

Mike Moore is Deputy Editor at TechRadar Pro. He has worked as a B2B and B2C tech journalist for nearly a decade, including at one of the UK's leading national newspapers and fellow Future title ITProPortal, and when he's not keeping track of all the latest enterprise and workplace trends, can most likely be found watching, following or taking part in some kind of sport.