If you are using iOS UIWebView, this might be the solution:
You change the default user agent (here we change it to "UniqueAppUserAgent") sent by WebView by running this code once when your application starts
NSDictionary *dictionnary = [NSDictionary dictionaryWithObjectsAndKeys:@"UniqueAppUserAgent", @"UserAgent", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary];
Then use% {HTTP_USER_AGENT} as your condition
RewriteCond %{HTTP_USER_AGENT} UniqueAppUserAgent
source
share