My ownertrades.com asp.net website got hacked, causing any link to my site that is found via a Google search, to be redirected to some other site.
If I access my website via a direct url address, the site works fine, there seems to be nothing wrong with it. It's only links found via search engines that cause the problem. Somehow the crawlers used by the search engines picked up the hackers websites
and indexed them as if they belonged to my site.
Using some Google recommendations I discovered an unauthorized user and deleted him. I also changed the password used to access my site account. I also discovered and deleted a number of .asp files, php files, and html files, that had been added by the hacker
to the live website
Now when someone clicks on any link to my site found via a Google search, they get a 404 File not found error which I assume has to do with my having removed files the hacker put in place, thereby disrupting whatever the re-directing process was.
My question: There is a web.config file in the cgi-bin folder of the live site that I did not put there. I need to know what it does, if it is might be needed by the server, and if I should (or could) safely delete it.
here is the code from that file:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Execute, Script" />
</system.webServer>
</configuration>