CONTEXT
I have just been reading about Zend ACL http://framework.zend.com/manual/en/zend.acl.html
QUESTION
I'm running three Zend applications on one server.
- My Front End App
- My Front End-Members App
- My Back End App (Site Owner's Admin)
Within the applications I'm considering having two types of ACL.
- Application Wide ACL - ''app ACL's'' permissions are just - "access" (or maybe call it "read", (or even "SendHTTPRequests"))
- Account Wide - leaving all other permissions to individual ''account ACL's''
I'm thinking this would make it easier to block spammers and other attackers
if (UserActivityScoresHighProbabilityOfHacking_Specification->IsSatisfiedBy(User))
{
User->addrole(Attacker)
}
Perhaps with rules something like this:
My Front End App Access Controls
- Name = Attacker
- Unique Permissions = NONE
- Inherit Permissions From = N/A
- Name = Guest
- Unique Permissions = SendHTTPRequests
- Inherit Permissions From = N/A
- Name = Member
- Unique Permissions = SendHTTPRequests
- Inherit Permissions From = Guest
- Name = Admin
- Unique Permissions = (ALL Permissions)
- Inherit Permissions From = N/A
The other apps would have more stringent rules to deny access to guests, etc
So the question to answer is:
Does assigning the role of 'Attacker' (a negative role) to a user strike you as being a sensible thing to do.
Or this contrary to general best practice?