| While doing the initial R&D for blocking SharePoint Designer access, Brian and I discovered something else that is kind of fun. Since we now know that you can block SPD access by setting a value in an SPWeb’s PropertyBag, and we also know how to modify PropertyBag variables in SPD, the next logical step is to use SharePoint Designer to DISABLE access to a web using SharePoint Designer. * Again, this is just for fun. Once you disable access via SPD you obviously can’t get in and undo your change. There also isn’t an out of the box way to modify PropertyBag values through SharePoint’s Web UI so you’d be stuck having to use PowerShell or some other method to undo this silly change. * -
Open your Web in SharePoint Designer
-
Choose Site Settings from the Site menu:  -
On the Parameters tab, add a new parameter named “vti_disablewebdesignfeatures2” with a value of “wdfopensite”. -
Close SharePoint Designer (you must close all the way out, the Open Service method’s response is cached by SPD and won’t change until you come restart SPD)
-
Attempt to open the site again: And there you have it! :-) |