IIS7.5でSharePointサイトを実行しています。リクエストヘッダーに基づいて着信リクエストを許可/ブロックしたい。これが実装したい条件です。
ここで、clientIdとuserAgentはリクエストヘッダーです。
String clientId=Request.getHeaderValue('clientID');
String userAgent=Request.getHeaderValue('useragent');
//If clientId and userAgent are empty abort the request
if(clientId.equals('') && userAgent.equals('')){
//Abort the request
}
//If clientId is not empty but is not matching my expected value,then abort the request.
if(!clientId.equals('') && !clientId.equals('1234'){
//Abort the request
}
//If userAgent is not matching my expected value ,then abort the request.
if(!userAgent.equals('myfavbroswer')){
//Abort the request
}
IISのURLRewriteModuleをすでに確認しましたが、目的を果たしていないようです。
これは、私が導入したい大まかなロジックです。IISサーバーとSharePointを初めて使用します。このロジックをサーバーに配置して、目的を達成できる場所を教えてもらえますか。
ありがとう。