Allow to have custom security rules. 

Guys,

Please consider merge of this request.
It's related to Issue #3061. In that issue I asked about some security related performance tests, but didn't obtain any response. If you have tests: please compare. But, I think, it shouldn't be significantly different...