You need to provide more information, specifically about your Mac, operating system version, type of internet connection you're using, etc. There's no possible way we can efficiently help you with something as vague as "I can't log on to internet from safari."