Macbook Pro won't open most websites on any browser
it's been over 48 hours and my Macbook won't load any websites. Well, google works just fine, and so does this apple discussion page and twitter. Besides that, no other websites will load. Im using my home wifi and i noticed when i use my phones hotspot, everything works fine. I don't have any anti virus softwares and I've tried everything i could think of. I reset my router and modem at least 5 times. At one point the websites started loading for about 20 minutes and the problem came back. I've only had this laptop for 5 months and its the first time i've been having any problems. I've tried disabling the ipv6 -- nothing. Nothing is checked in the proxies tab. I even created a new user account and booted up in safe mode, but the problem is still there. Safari says "cannot connect to server" and google chrome says "ERR_CONNECTION_REFUSED" Any help will be greatly appreciated.
MacBook Pro (Retina, 13-inch, Mid 2014), OS X Yosemite (10.10.3)