Take a look at the UIWebViewDelegate method:
Code:
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
It's called when a web view is to load something. So you can catch link clicks there, get info about the requests (like URL info), and take the desired action.