So I was surfing around a few minutes ago and all of a sudden I got a pop up for a website www.swamipredicts.com. I closed it and sure enough, 10 seconds later it popped up again! It popped up every 10 seconds for a few minutes and was aggravating the hell out of me. I was using Safari and shut it down and used Firefox to find a solution. Here is what I found:
But now the only difference was that I had another line in hosts file that read
"fe80::1%lo0 localhost"
so I commented that out with a pound sign and all has been well since.
Anyone else get hit with that? I'd hate to have to keep editing my hosts file everytime some friggin site hijacks safari!!!!
Thanks!
You can permanently block that site from loading by editing your Hosts file.
Launch Terminal (it's in Applications/Utilities). Check the hosts file that you have now by typing:
cat /etc/hosts
Which ought to return this:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
Backup the hosts file to a file named hosts.original by typing:
sudo cp /etc/hosts /etc/hosts.original
If it asks for your administrator password enter it. Copy the hosts file to the Desktop by typing:
cp /etc/hosts ~/Desktop/hosts.txt
Then double click the hosts.txt file on the desktop to open it in TextEdit. Add the following to the end of the file:
0.0.0.0 ip36.swamipredicts.com
Add similar lines for any other domains you might wish to block (e.g., ip35.swamipredicts.com if it isn't always ip36 etc).
File >Save.
Copy the edited file back into the /etc directory by typing this:
sudo cp ~/Desktop/hosts.txt /etc/hosts
(Note: There is no ".txt" extension on /etc/hosts)
Quit Terminal. Safari should no longer be able to load the page now. This is also very similar to how you do it in Windoze.
But now the only difference was that I had another line in hosts file that read
"fe80::1%lo0 localhost"
so I commented that out with a pound sign and all has been well since.
Anyone else get hit with that? I'd hate to have to keep editing my hosts file everytime some friggin site hijacks safari!!!!
Thanks!