Site is being redirected to external Ads URL

Dear experts,
I have a site which is redirecting users to an external URL which has all types of ads. The redirection happens once the page loads so I think its some type of JavaScript.
There is no robots file but it has a sitemap.xml
I have downloaded the site and run it locally, where it behaves in the same way, so it’s not a server issue.
Please take a look at the site below.

This is the first issue of this type and I would really like to know how to approach a problem like this.

Kind regards

A M de Groot Sanders
Abiel de GrootDeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Big MontyWeb Ninja at largeCommented:
looks like you were hacked, there's a script in your HTML mark-up, towards the very bottom:

<script src="" type="text/javascript"></script>

I believe this is the cause of the redirect. Do you see that line in your code, or is that section of the page generated from the database? if so, you'll need to remove it from your database.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Abiel de GrootDeveloperAuthor Commented:
Very good Big Monty!!

How were you able to establish that so fast?

Big MontyWeb Ninja at largeCommented:
black magic? j/k :)

I use Chrome Developer Tools, and under the Network tab, you can see each page request being made, as well as where that request came from. I clicked on the file and saw the output was a redirect to that site.

I've also dealt with this in the past, so I knew where to begin looking.
Abiel de GrootDeveloperAuthor Commented:
Many thanks ;-)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.