remove phonegap access except internet connection