1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to look in the source from redirected subdomain.

Discussion in 'Black Hat SEO' started by Martin1971, Jan 22, 2014.

  1. Martin1971

    Martin1971 Senior Member

    Joined:
    Jan 7, 2013
    Messages:
    910
    Likes Received:
    283
    Location:
    Netherlands
    Hi,

    A competitor is using subdomain and redirect the subdomain to the main domain:

    subdomian.mywebsite.com redirected to mywebsite.com

    I want to look in the source from the subdomain and want to now why he is redirecting this domain, becourse it is redirected i can not look in the source from the subdomain.

    Any advice...?

    Regards
     
  2. srb888

    srb888 Elite Member

    Joined:
    Jul 30, 2008
    Messages:
    3,260
    Likes Received:
    5,067
    Gender:
    Male
    Occupation:
    WebzSurfer
    Location:
    Sun, Mon, Tue, WTF, Sat!!! :)
    I think you can use Quick Java addon on firefox and then disable java / java scripts. Those are toggle switches seen on the Add-on toolbar of firefox after you install the above add-on.

    I am not sure though. Try it anyway, the add-on is very useful. I also don't know any such example site to test if it works...

    Once you disable those switches (one of those may be useful), the site will not redirect further imo. After that you can use Page source option (Ctrl+U) or use the Firebug, etc. to see if there is any code/script visible on that page.

    If it works, then please let me know too. :)
     
    • Thanks Thanks x 1
    Last edited: Jan 22, 2014
  3. ficfroc

    ficfroc Regular Member

    Joined:
    Feb 14, 2010
    Messages:
    475
    Likes Received:
    267
    Location:
    Sous Les Etoiles
    If it's a java redirect then the solution posted by srb will work. but if it is a server side redirect it won't . you're way to go is to check the cache on google/bing ,if it gives you nothing then you might try the archive.org way back machine and hope they have captured it before the redirect has taken place.
     
    • Thanks Thanks x 1
  4. Martin1971

    Martin1971 Senior Member

    Joined:
    Jan 7, 2013
    Messages:
    910
    Likes Received:
    283
    Location:
    Netherlands
    Hi,

    Thanks for helping, although it did not work :-(
     
    • Thanks Thanks x 1
  5. Martin1971

    Martin1971 Senior Member

    Joined:
    Jan 7, 2013
    Messages:
    910
    Likes Received:
    283
    Location:
    Netherlands
    Also did not work :-(
     
  6. srb888

    srb888 Elite Member

    Joined:
    Jul 30, 2008
    Messages:
    3,260
    Likes Received:
    5,067
    Gender:
    Male
    Occupation:
    WebzSurfer
    Location:
    Sun, Mon, Tue, WTF, Sat!!! :)
    Try direct downloading the url from DownloadAll! add-on of firefox (don't open the url and then do a "save as..."), copy+paste the url in the DownLoadAll! Manager (using the "+" sign at the top right in menu), and if it succeeds, then check the html. Am not sure this will work.

    May be some other member will give you a working method, but until then try our amateur ideas! lol
     
  7. Martin1971

    Martin1971 Senior Member

    Joined:
    Jan 7, 2013
    Messages:
    910
    Likes Received:
    283
    Location:
    Netherlands
    Hi Srb888,

    It is downloading the homepage :-(
    Anyway thanks for helping...
     
  8. ChrisX

    ChrisX Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 8, 2011
    Messages:
    229
    Likes Received:
    124
    Gender:
    Male
    Home Page:
    If that's a htaccess redirect, there could be no source for you too look at.
    In chrome open up developer tools, go to network tab and click the red button to record http requests. Navigate to their subdomain and you'll see the requests in the inspector.
     
  9. rhinocat

    rhinocat Junior Member

    Joined:
    Sep 12, 2013
    Messages:
    170
    Likes Received:
    20
    there no way to get the source if he is using .htaccess to his site

    but if he only use javascript to redirect his site u may use view-source:url-here just use google chrome
     
  10. nastybasti

    nastybasti Newbie

    Joined:
    Jan 21, 2014
    Messages:
    26
    Likes Received:
    8
    Occupation:
    fullstack web developer
    Location:
    USA
    If you share the domain then we can figure it out for you. It can be done so many different ways. It can be javascript on a page hosted on the sub domain. It can be a rewrite rule on the web server which does a reidrect. It can also be a DNS redirect.

    In most cases the source alone wont show you what is going on. You also need to look at HTML headers sent by the server to see if they are asking the browser to redirect.
     
  11. valkone

    valkone Registered Member

    Joined:
    Mar 30, 2013
    Messages:
    65
    Likes Received:
    15
    Location:
    Bulgaria
    Open Chrome na write "view-source:subdomian.mywebsite.com" on url bar.