Alpha
Alpha

Reputation: 453

How to find a javascript redirection in my website

I have an injection on my website. When javascript is enabled the website redirects to another one.

How can I find out where the injection is?

Upvotes: 1

Views: 2409

Answers (2)

Martin Tale
Martin Tale

Reputation: 907

  1. Disable Javascript
  2. Look at page source
  3. Search for redirects

Another thing is that redirect can ge added to the site using Javascript. Maybe some content that you load using Javascript which won't be visible with Javascript disabled.

P.S. Quickest way I think would be by searching for the website you get redirected to in the page source.

Upvotes: 2

Marc Costello
Marc Costello

Reputation: 439

If you cannot find any javascript redirects in your code check for any and all ajax requests. A script maybe injected asynchronously

Upvotes: 0

Related Questions