HI there skaminulazim,
It sounds like your browsers are unable to load any websites aside Facebook, Google, and Youtube for some reason. If you are not booting into Windows via a Boot Camp partition and are using the Mac OS X, I would check to see if your DNS settings are outdated or perhaps they were changed from DHCP to something else that might be preventing it from working correctly. You can check that in System Preferences > Network.
You may even need to recreate your network service. In the same Network pane listed above:
1. Highlight your network service such as Wi-Fi or Ethernet (whichever you use to connect to the internet)
2. Click the minus (-) button down at the bottom of the list. This will remove the network service.
3. Click Apply in the lower right hand corner of the window
4. Restart your Mac from the Apple menu in the upper left corner of the screen
5. Navigate back to System Preferences > Network
6. Click the plus (+) symbol at the bottom of the network service list
7. From the Interface dropdown select the service you removed in step 2 (whether it was Wi-Fi or Ethernet)
8. It should name itself automatically as what it was before. (If it adds a 2 such as 'Ethernet 2' or ' Wi-Fi 2' you can delete the 2
9. Click Create
10. Click Apply again in the lower right corner
The small light to the left of the network service name should go from red to green after a minute or so. Then test the issue again.
If the issue persists then I would next check for any third-party security software that might be restricting access to the internet.
Thank you for using Apple Support Communities.