igorkasyanchuk / secrett11tto

Simple way to protect your content from copy-pasting

Home Page:https://www.railsjazz.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Secrett11tto

RailsJazz https://www.patreon.com/igorkasyanchuk Listed on OpenSource-Heroes.com

Demo

Do you need to protect content on your web site from copying as text.

This gem uses HTML/CSS and Ruby method, it generates a random strings and special CSS which won't be visible but will be copied.

User can see a normal text, but if he tries to copy/paste it from the page it will include garbage.

Of course this gem does not protecting from the experienced developers who can parse HTML using automated tools, but for 99.9% people this approach will work.

Usage

<h2><%= "John Smith".secretify %></h2>

# or

SSN: <%= "778-544-20015".secretify %>

or just call .secretify on any string which you show on the page.

Installation

Add this line to your application's Gemfile:

gem 'secrett11tto'

And then execute:

$ bundle

TODO

  • improved dirtionary, use more symbols from different languages
  • nested classes, better text protection, other techniques?

Contributing

You are welcome to contribute!

License

The gem is available as open source under the terms of the MIT License.

About

Simple way to protect your content from copy-pasting

https://www.railsjazz.com/

License:MIT License


Languages

Language:Ruby 72.0%Language:HTML 22.2%Language:CSS 3.4%Language:JavaScript 2.3%