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

XF 1.4 Suggest the best way to kill links to certain domains

Discussion in 'XenForo Questions and Support' started by OperaManiac, Oct 8, 2014.

  1. OperaManiac

    OperaManiac Well-Known Member

    After around 10 years with no issues running Google AdSense on my forum… Google today decided that linking to a few torrent domains was a major problem even though the discussion containing the links was around internet censorship and not copyright infringement. Ad serving is currently disabled on my forum as a result.

    So I am trying to find ways to kill all links to a long list of domains (torrent sites and file sharing sites). The problem is that I am not sure what would be the safest way to ensure that all of these links are killed properly. There are bound to be links to internal pages. There are going to be links with and without / at the end and so on. There are going to be links pointing to the domain itself, title tag (I use a plugin) and of course, manually created links with text content.

    So I am looking for advice on how to go ahead with this attempt to comply with Google policies because AdSense is a major source of revenue on my XenForo forum and I had like to give a shot at getting the ban removed. Thanks!
     
  2. RoldanLT

    RoldanLT Well-Known Member

  3. Mouth

    Mouth Well-Known Member

    This option works well for me.
     
    OperaManiac likes this.
  4. OperaManiac

    OperaManiac Well-Known Member

    was hoping for a way where link creation could be blocked but mentioning of sites is not. for example...

    this would not work:
    http://thepiratebay.se/
    but this would:
    thepiratebay.se

    I guess I can censor the domains with http:// part in them. Thanks!
     
  5. AndyB

    AndyB Well-Known Member

    suggest you use the Message Parser v1.0 add-on:

    https://xenforo.com/community/resources/message-parser.3376/

    The code in the DataWriter.php file would be:

    PHP:
    $messageParsed preg_replace('/http\:\/\/thepiratebay/i''*****'$messageParsed);
    $messageParsed preg_replace('/\.thepiratebay/i''*****'$messageParsed);
     
    Sunka likes this.
  6. OperaManiac

    OperaManiac Well-Known Member

    Ah thanks. I researched a bit more and it looks like Google does not even like unlinked URLs. So I have used the censorship feature in XenForo to block all mentions of the popular torrent search engines and file sharing services. What a freaking mess. :|
     
  7. Mouth

    Mouth Well-Known Member

    It would be great to get a copy of that list. Are you willing to share?
     
  8. OperaManiac

    OperaManiac Well-Known Member

    I just googled for list of popular torrent sites and included the ones I found. Here is my current list:

    Code:
    1337x.org
    4shared.com
    bitenova.org
    bitsnoop.com
    btscene.eu
    demonoid.me
    depositfiles.com
    extratorrent.cc
    extratorrent.com
    eztv.it
    fenopy.eu
    filecrop.com
    h33t.com
    hightail.com
    isohunt.com
    isohunt.to
    kat.ph
    kickass.to
    mininova.org
    mybittorrent.com
    newnova.org
    newtorrents.info
    rapidshare.com
    rarbg.com
    rutracker.org
    sendspace.com
    thepiratebay.org
    thepiratebay.se
    torrentleech.org
    torrentproject.com
    torrentreactor.net
    torrentspy.com
    torrentz.eu
    uploaded.net
    yify-torrents.com
    zippyshare.com
    The problem is that this list is always going to be incomplete. A lot of these are probably harmless. Even TPB host perfectly legit files. So the whole thing is a big sham. Also ironical...
     
    Mouth likes this.

Share This Page