Block access for specific mobile devices

I need to block access to site for specific mobile devices. All of them use IOS 6 and Safari 6 web browsers. Please advise, is there a way to set the rule that no one with safari 6 will not be able to access the site?