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

Lack of Interest Censored words should not be searchable

Discussion in 'Closed Suggestions' started by AzzidReign, Dec 17, 2013.

  1. AzzidReign

    AzzidReign Well-Known Member

    With all the adsense TOS crack downs, we've been adding a lot of words to the censor list. Google Adsense's TOS states that you can't even have "adult keywords" on your site, as that is a violation of their policy. I've blocked all bots from using the search but somehow, a violation came up and it is showing a search page. The term is on our censor list, but you can still see the posts that have "used" this term. Apparently you can still search the term even though it comes up as ****.

    I suggest making all censored terms NOT searchable. This will help with adsense TOS and I don't think users should be searching for terms you've censored out.
    drudy, Autonamus and Daniel Hood like this.
  2. Mike

    Mike XenForo Developer Staff Member

    In general, this is already done, at least for the *** case.
    $input['keywords'] = XenForo_Helper_String::censorString($input['keywords'], null, ''); // don't allow searching of censored stuff
    This code should actually remove anything that gets starred out.
    AzzidReign likes this.
  3. AzzidReign

    AzzidReign Well-Known Member

    Where would I add that?
  4. Mike

    Mike XenForo Developer Staff Member

    I mean it's already there. I tested it locally and couldn't reproduce the issue. You should be able to confirm it by just searching for a censored term -- it will act as if you haven't entered a query. The term is simply ignored. (You can check it here by entering a term that would be obviously censored... :))
  5. BamaStangGuy

    BamaStangGuy Well-Known Member

    What term are you searching for on your site that is returning results?
  6. Brogan

    Brogan XenForo Moderator Staff Member

    The issue is, if you use a root word in the censor and don't specify an exact match, searching for **** will get no hits, but searching for ****ing will return hits.
  7. Mike

    Mike XenForo Developer Staff Member

    @BamaStangGuy - had to delete that post because of the word in the image.

    It will return hits, but it's actually searching for "ing" in that example (on the default FT settings, you won't be able to search for that).
    BamaStangGuy likes this.
  8. Marie45

    Marie45 New Member

    I tried confirming by searching for the censored term, still not working. Any other suggestions? Thanks.

Share This Page