Methods are disclosed for selectively controlling access to a resource that is accessible to multiple nodes in a multi-node system or multiple processors in a multi-processor system to prevent hackers, malware, and ransomware attacks. The multi-node or multi-processor systems receive both matching and non-duplicated requests. In operation, each node or processor receives either a matching or non-duplicated request to access the resource. For the matching request, indicia of the request to access the resource is computed at each node or processor and is then compared between nodes or processors. Access to the resource is given to a node or processor when the computed indicia matches. For the non-duplicated request, a determination is made as to whether direct access to the resource is authorized for the request, and, if direct access is authorized, access to the resource is given to a node or processor.