Is it acceptable to upload offensive content to GitHub? [closed]

I developed an offensive content checker for my website and want to publish it on GitHub. However, the source code contains many offensive, racist and otherwise nasty content.

The source is fully documented, but I wanted your opinion on whether it’s acceptable to publish such work on GitHub or whether to leave the array of strings up to the imagination of the reader?!

5

I have to disagree with the ROT-13 solution. Obfuscating your banned words simply because the sight of them might offend someone is a waste of time.

Your dictionary of bad words/bad-word-rules should come from a separate file anyways (which could be loaded at runtime, or embedded as a resource). Obfuscating this file simply makes it more difficult for you/other developers/your users to alter it, or fix any issues. Besides, if I saw a file called “banned_words.txt” on my hard-drive, I would expect it to contain a list of offensive words.

9

“All problems in computer science can be solved by another level of indirection.” (by David Wheeler).

Your options aren’t limited to either uploading it or not, if you take into account that you can encode content so that it won’t bother readers.

  • As an example, simply shifting to the next letter (A to B, B to C, etc., with Z shifting to A to complete encoding) can turn famous four letter words into totally harmless Gvdl. All you need to use it in your application would be to shift it back in the opposite direction, to previous letters, with A shifting to Z.

As pointed out in comments, an approach like the above is used in ROT13 letter substitution cipher, known for its use “as a means of hiding… offensive materials from the casual glance…”

 


For the sake of completeness, consider additionally running your checker against an encoded dictionary, in order to ensure that the chosen encoding didn’t accidentally turn one offensive word into another.

When encoding stuff like that, it makes sense to double check, because one can’t reliably predict things. In one of my past projects, we had a fairly severe mail outage when a misconfigured checker began discovering offensive content in random sequences of characters (in the uuencoded content of ZIP archives).


Compared to passing around plain text, Gvdl​s, encoding has a substantial benefit of fully avoiding legal issues and all the involved risks and dependencies.

Just think of it. Say, particular terms of service at a particular repository allow my content, fine.

But, what if they decide to change the TOS? Or, what if I decide to change to another repository, having incompatible terms. What am I going to do?

Note by the way that even being at a “friendly” repository, here and now, still isn’t fully safe.

What if someone won’t be able to download my content because of weird web filter? Am I willing to respond to user complaints and explain how to fix the filter? Their filter…

…You see, I would rather think twice before I decide against encoding. And even if I decide, I would make sure that I have a very, very good reason for that.

12

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật