Extension:SourceProtection

The SourceProtection extension removes the ability to view the source code of a page if a user does not have edit rights through disabling certain actions.

The following actions are disabled which may provide access to the source code:
 * edit
 * move
 * history
 * info
 * raw
 * delete
 * revert
 * revisiondelete
 * rollback
 * markpatrolled

Additionally, the SourceProtection extension removes the following tabs from a page if a user may not edit:
 * View source
 * History
 * Edit with form (if Page Forms is installed)

Version history
MW 1.39+ support Checked compatibility with 1.35+. No major changes, just typos or comments added Added more actions for user without edit permissions to protect the source of a page more thoroughly. Removes View Source tab and (if Page Forms is installed the edit-Form tab) & History tab from menu and disables action=edit function for users with no edit permissions. It will also block the viewing of the readonly form. Initial version (prototype)
 * Version 1.1.3 (2023-06-09)
 * Version 1.1.2 (2021-05-13)
 * Version 1.1.1 (2017-10-10)
 * Version 1.1.0 (2017-08-08)
 * Version 1.0