Thread:Project:Support desk/Blocking page edit by HTTP-query params

When user edit pages HTTP-queries include special parameter. 1. How can I block editing if this parameter defined in HTTP-query? 2. How can I allow editing of the user has a special flag?

So, where I can see simple extension for mediawiki, which add user rights and install hook for edit?