This is coming soon!

Censoring your site (Like AdminForums)

Discussion in 'Forum Software & Customization' started by Xyphien, Jan 18, 2012.

Oh noes!

You need 20 posts to be able to download resources, post links and other things. Read more...
  1. Xyphien Active Member

    [IMG]


    If you are using CloudFlare on your site you can enable the Stop Censorship app in your apps panel.
    If you are not on CloudFlare then you can embed this in your page.

    (Note: if using XenForo add in Header)

    Code:
    <script type="text/javascript"> var CloudFlare = CloudFlare || []; </script>
                <script type="text/javascript" src="//ajax.cloudflare.com/cdn-cgi/nexp/cloudflare.js" async></script>
                <script type="text/javascript">
                    var censorshipConfig = {
                        "twitterHandle" : "", // Your Twitter handle; if not provided, your website domain will be used.
                        "position_x" : "right", // Badge position - right or left
                        "selector" : "p, h1, .censor_me", // Optional selector for elements to censor. Remove for default.
                        "regex" : ".{5}", //In case you like Regexes, and want to change the logic for how to black out text.
                        "persistent" : false //Make this true if you want the bars to appear on every page view, and not fade away when the box pops up.
                        }
                    var a=window.CloudFlare;a.push({paths:{stop_censorship:"//ajax.cloudflare.com/cdn-cgi/nexp/apps/"}});a.push(function(b,c){c("stop_censorship/config",function(){return censorshipConfig});b(["stop_censorship"])});
                </script>
    • Like Like x 1
    Loading...
  2. Andrew Member

    Thanks for the tip!
  3. chrisgrigg Member

    I also done this on my forum yesterday.