Results 1 to 14 of 14
  1. #1
    DaftDog's Avatar
    DaftDog is offline Private Member
    Join Date
    October 2008
    Location
    South Africa
    Posts
    2,153
    Thanks
    688
    Thanked 775 Times in 464 Posts

    Default Blocking Another Site Inserting My Site Via iFrame

    I discovered another website that was inserting my website into pages on their site using iframes. I Googled a solution that re-directs any such page to my actual website.

    Now I am just a bit concerned of the SEO ramifications, if any, of doing this. Will these new re-directed links pass on any good or bad SEO signals to my website?

  2. #2
    dfiocch's Avatar
    dfiocch is offline Private Member
    Join Date
    September 2006
    Posts
    875
    Thanks
    787
    Thanked 565 Times in 348 Posts

    Default

    You're exposed to "clickjacking". It means that someone can generate a script to completely "destroy" you click stats (including bounce rate, time on site and many other sh*ts that G count on quality sites). Or, they can use your own layout to rank other sites... or... or... or... definitively not good.

    If you want to block other sites inserting your own site in their pages using iframes, you could add this to your .htaccess file:

    Code:
    Header set X-Frame-Options SAMEORIGIN
    This block the "iframing" of your site but you can still use iframes on your own properties.
    I wouldn't do redirects from "scumbag-site" to my site: the site A maybe compromised/poisoned/penguinized/pandaliez/malwarized and as we all know, 301 redirects pass a lot of good things but also a lot of sh*ts.

  3. The Following 5 Users Say Thank You to dfiocch For This Useful Post:

    DaftDog (17 June 2015), MrDeposit (21 September 2018), slotplayer (17 June 2015), sweetbet (17 June 2015), vardan (17 June 2015)

  4. #3
    DaftDog's Avatar
    DaftDog is offline Private Member
    Join Date
    October 2008
    Location
    South Africa
    Posts
    2,153
    Thanks
    688
    Thanked 775 Times in 464 Posts

    Default

    Quote Originally Posted by dfiocch View Post
    You're exposed to "clickjacking". It means that someone can generate a script to completely "destroy" you click stats (including bounce rate, time on site and many other sh*ts that G count on quality sites). Or, they can use your own layout to rank other sites... or... or... or... definitively not good.

    If you want to block other sites inserting your own site in their pages using iframes, you could add this to your .htaccess file:

    Code:
    Header set X-Frame-Options SAMEORIGIN
    This block the "iframing" of your site but you can still use iframes on your own properties.
    I wouldn't do redirects from "scumbag-site" to my site: the site A maybe compromised/poisoned/penguinized/pandaliez/malwarized and as we all know, 301 redirects pass a lot of good things but also a lot of sh*ts.
    Thanks a stack for the info. Just implemented the code in my .htaccess file and it is working as you mentioned.

  5. The Following 2 Users Say Thank You to DaftDog For This Useful Post:

    bettingmalta (23 September 2018), dfiocch (17 June 2015)

  6. #4
    dfiocch's Avatar
    dfiocch is offline Private Member
    Join Date
    September 2006
    Posts
    875
    Thanks
    787
    Thanked 565 Times in 348 Posts

  7. #5
    slotplayer is offline Private Member
    Join Date
    September 2006
    Posts
    1,044
    Thanks
    198
    Thanked 322 Times in 252 Posts

    Default

    thanks, I was looking for something like this.

  8. The Following User Says Thank You to slotplayer For This Useful Post:

    dfiocch (18 June 2015)

  9. #6
    slotplayer is offline Private Member
    Join Date
    September 2006
    Posts
    1,044
    Thanks
    198
    Thanked 322 Times in 252 Posts

    Default

    curb shop and 5ver are two that like to iframe another sites' content.

  10. #7
    vardan's Avatar
    vardan is offline Private Member
    Join Date
    March 2014
    Location
    Barcelona, Spain
    Posts
    430
    Thanks
    378
    Thanked 231 Times in 156 Posts

    Default

    Thanks for the code: it's better to prevent risks, than fix them later

  11. The Following User Says Thank You to vardan For This Useful Post:

    dfiocch (18 June 2015)

  12. #8
    sweetbet's Avatar
    sweetbet is offline Public Member
    Join Date
    November 2012
    Posts
    2,824
    Blog Entries
    5
    Thanks
    898
    Thanked 1,574 Times in 1,086 Posts

    Default

    I usually add a break-out-of-frames script to all my pages, but this is much better.

  13. The Following User Says Thank You to sweetbet For This Useful Post:

    dfiocch (18 June 2015)

  14. #9
    universal4's Avatar
    universal4 is offline Forum Administrator
    Join Date
    July 2003
    Location
    Courage is being scared to death...and saddling up anyway. John Wayne
    Posts
    33,878
    Thanks
    4,515
    Thanked 9,270 Times in 5,960 Posts

    Default

    Yes I agree this is excellent information.

    Rick
    Universal4

  15. The Following User Says Thank You to universal4 For This Useful Post:

    dfiocch (19 June 2015)

  16. #10
    DaftDog's Avatar
    DaftDog is offline Private Member
    Join Date
    October 2008
    Location
    South Africa
    Posts
    2,153
    Thanks
    688
    Thanked 775 Times in 464 Posts

    Default

    Sorry but I do have a reason for resurrecting this old thread.

    I gave the code mentioned in this thread to a friend whose site was having the same issue I initially experienced. They just emailed me to say that they were hacked within 5 minutes of inserting this code into their htaccess file. Has anybody else had a similar issue? I personally don't believe the code is the issue as I have used it since dfiocch provided it to me here in this thread.

    Code:
    Header set X-Frame-Options SAMEORIGIN

  17. The Following User Says Thank You to DaftDog For This Useful Post:

    Topboss (25 September 2018)

  18. #11
    Progger's Avatar
    Progger is offline Public Member
    Join Date
    November 2014
    Location
    New Zealand
    Posts
    1,420
    Thanks
    282
    Thanked 923 Times in 580 Posts

    Default

    Quote Originally Posted by DaftDog View Post
    Sorry but I do have a reason for resurrecting this old thread.

    I gave the code mentioned in this thread to a friend whose site was having the same issue I initially experienced. They just emailed me to say that they were hacked within 5 minutes of inserting this code into their htaccess file. Has anybody else had a similar issue? I personally don't believe the code is the issue as I have used it since dfiocch provided it to me here in this thread.

    Code:
    Header set X-Frame-Options SAMEORIGIN
    This code is not the reason...100% not.

  19. The Following User Says Thank You to Progger For This Useful Post:

    DaftDog (21 September 2018)

  20. #12
    IWcasino is offline Public Member
    Join Date
    July 2017
    Posts
    54
    Thanks
    18
    Thanked 40 Times in 19 Posts

    Default

    Quote Originally Posted by DaftDog View Post
    Sorry but I do have a reason for resurrecting this old thread.

    I gave the code mentioned in this thread to a friend whose site was having the same issue I initially experienced. They just emailed me to say that they were hacked within 5 minutes of inserting this code into their htaccess file. Has anybody else had a similar issue? I personally don't believe the code is the issue as I have used it since dfiocch provided it to me here in this thread.

    Code:
    Header set X-Frame-Options SAMEORIGIN
    Hacked within 5 minutes or discovered within 5 minutes they’d been hacked at some unknown point?

  21. #13
    dfiocch's Avatar
    dfiocch is offline Private Member
    Join Date
    September 2006
    Posts
    875
    Thanks
    787
    Thanked 565 Times in 348 Posts

    Default

    It's not the code. Impossible.
    Ask them to check for plugin vulnerabilities (if they are using WP or Joomla).

  22. The Following 2 Users Say Thank You to dfiocch For This Useful Post:

    DaftDog (24 September 2018), Topboss (25 September 2018)

  23. #14
    buyonaut's Avatar
    buyonaut is offline Private Member
    Join Date
    March 2007
    Location
    Zagreb, HR, South from North
    Posts
    163
    Blog Entries
    1
    Thanks
    77
    Thanked 47 Times in 33 Posts

    Default

    The best way to fix this other than above script is to file a DMCA complaint. It worked for me, however the site/domain that was hijacked was destroyed ie intoxicated by the hijacker very badly. Google is stupid enough to not differ original content from the jacked one, and my site never recovered from that.
    That was a long time ago, maybe damage is not so bad nowdays. Good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •