protect 3rd party API block everything only allow specific calls to the api with specific parameters

Ivan Rodriguez <[email protected]>
Newsgroups gmane.comp.apache.mod-security.user
Message-ID <CA+wMzV+fPCZ8aGD=w0GM2wNyp9S9mcfv5dPfMcXtJNC8ngKCFQ@mail.gmail.com>
Hi there,

So it happens we have a 3rd party API provider that we need to expose, the
API is quite extensive, we would like to basically block every single call
to the API except for a very specific call with some specific parameters,
for example

block something like this
curl -s -d "<config classId='c' cookie='xx'  />"
and allow only something like this
curl -s -d "<setup classId='x' cookie='xx'  />"

we have the full API reference so we could have one rule per api call that
we want to block, what would be the best way to achieve this ?  on modsec 2
?

Thanks in advance

_______________________________________________
mod-security-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Rules and Support from Trustwave's SpiderLabs:
http://www.modsecurity.org/projects/commercial/rules/
http://www.modsecurity.org/projects/commercial/support/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.