optimising internet widget

Is `grep` the best way for this? Could be a bit of an overkill 

If `access` (next if statement) is faster then that should go first to avoid an unncessary `grep`

what do you think @skarbat @pazdera @zsero