This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
348 lines (305 loc) · 15.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html>
<html lang="en">
<head>
<title>TuringFonts: Publish uncrawable and uncopiable texts</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="icon" type="image/png" href="img/logo.ico"/>
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" href="lib/bootstrap/css/bootstrap-darkly.min.css" />
<script type="text/javascript" src="lib/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/angular/angular-1.3.15.min.js"></script>
<script type="text/javascript" src="lib/slidorion/jquery.easing.js"></script>
<script type="text/javascript" src="lib/slidorion/jquery.slidorion.min.js"></script>
<link rel="stylesheet" href="lib/slidorion/slidorion.css" />
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>
<style type="text/css">
@font-face {
font-family: 'arial_atbash';
src: url('fonts/arial/arial_atbash.eot');
src: url('fonts/arial/arial_atbash.eot?#iefix') format('embedded-opentype'),
url('fonts/arial/arial_atbash.woff2') format('woff2'),
url('fonts/arial/arial_atbash.woff') format('woff'),
url('fonts/arial/arial_atbash.ttf') format('truetype'),
url('fonts/arial/arial_atbash.svg#arialregular') format('svg');
font-weight: normal;
font-style: normal;
}
h1, h2, h3, h2 a, h2 a:hover {
font-family: 'Source Code Pro';
color: #88f;
}
h1 {
margin-top: 0;
}
div.content {
padding: 5px;
}
p, li {
font-size: 16px;
font-family: Verdana;
}
blockquote {
font-size: 15px;
padding: 5px 10px
}
div.demo {
position: relative;
bottom: 8px;
}
div.demo.bot,
div.demo.human {
margin-left: 10px;
color: #ffa;
font-size: 16px;
}
div.demo.bot {
font-family: Arial;
}
div.demo.human {
font-family: arial_atbash;
}
h2 a, h2 a:hover {
text-decoration: none;
}
td a {
color: #cff;
font-size: 1.2em;
}
td a:hover {
color: #4ff;
}
table.table tbody tr td:first-child {
font-weight: bold;
}
.slidorion {
box-shadow: none;
padding: 0;
color: black;
width:840px;
height:480px;
}
</style>
<script type="text/javascript">
function encrypt(text) {
var list = "abcdefghijklmnopqrstuvwxyz";
list = list + list.toUpperCase()
var code = "zyxwvutsrqponmlkjihgfedcba";
code = code + code.toUpperCase()
var newText = '';
for(var i=0; i<text.length; i++) {
var c = text.charAt(i);
var index = code.indexOf(c)
if(index >= 0) {
newText += list.charAt(index);
} else {
newText += c;
}
}
return newText;
}
var app = angular.module('myApp', []);
app.controller('demoCtrl', function($scope) {
$scope.someText = "Some sensitive text that only humans must be able to read";
$scope.update = function() { $scope.encrypText = encrypt($scope.someText); };
$scope.update();
});
$(document).ready(function(){
$('div.slidorion').slidorion({
speed: 1000,
interval: 8000
});
});
</script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.html"><img alt="" title="TuringFonts" src="img/logo-24.png"></a>
<a class="navbar-brand" href="index.html">TuringFonts</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-left">
<li><a href="index.html">Getting started</a></li>
<li><a href="advanced.html">Advanced topics</a></li>
<li><a href="encoder.html">Encoder</a></li>
</ul>
</div>
</div>
</nav>
<div class="content col-md-8 col-md-offset-2">
<h1>Introduction</h1>
<p><strong>TuringFonts</strong> is a simple technique for generate content (for websites or PDF files) that can't we crawled by bots or copied using the clipboard.
<p>It's useful in situations in which you want to publish some sensitive content that you don't want to be indexed by search engines like Google or Bing (such as e-mail addresses, telephone numbers or personal names) or when you don't want to allow the user to copy and paste your text (to avoid plagiarism or unauthorized modifications).</p>
<h2>How it works?</h2>
<p>This technique is based on the <a href="http://en.wikipedia.org/wiki/Substitution_cipher#Simple_substitution" target="_blank">simple substitution cipher</a> method and in the use of custom fonts.</p>
<blockquote>The simple substitutions cipher in a method of encoding in which each letter is replaced by another one. For example, you could decide to replace each letter by his neighbour in the alphabet (write 'b' instead of 'a', 'c' instead of 'b', etc.), in that case the text "Hello" would be write as "Ifmmp".</blockquote>
<blockquote>A font (in computing) is basically a file that indicates how to draw each letter. So, for example, some fonts define that the letter 'O' must be draw rounded while others indicate that must be oval.</blockquote>
<p>So basically you encrypt your text using some substitution cipher and then you apply (to that text) a Turing font that inverses the substitution previously made.</p>
<blockquote>A Turing font is a font whose symbols has been unordered on purpose. So when a letter is found, another letter is draw in his place. For example, a Turing font may indicate to draw an 'a' when encountering a 'b', draw a 'b' when encountering a 'c', etc.).</blockquote>
<p>In that's way any bot or computer, that get access to your website or PDF file, is going to read the encrypted text while all humans visitors are going to read the original text.</p>
<div ng-app="myApp" ng-controller="demoCtrl">
<h2><a name="demo">Demostration</a></h2>
<p>Write some text here:</p>
<div class="demo"><input type="text" ng-model="someText" ng-change="update()" style="width:100%;"></div>
<br/>
<p>This is what all computers and bots are going to read:</p>
<div class="demo bot">{{encrypText}}</div>
<br/>
<p>This is what all humans are going to see*:</p>
<div class="demo human">{{encrypText}}</div>
<p><small>(*) Try selecting and copying this text into a notepad to see what happens</small></p>
</div>
<br/>
<p>Have some doubt? Check the <a href="http://jsfiddle.net/jfmdev/d31805rq/2/" target="_blank">live demo</a> or download the <a href="sample.pdf">sample PDF file</a>.</p>
<h2>How to use it</h2>
<p>In order to use this technique, you must follow a two step process:</p>
<ol>
<li>Encode you text using some substitution method. You can use <a href="encoder.html" title="TuringFonts encoder">this encoder</a> to do it.</li>
<li>Apply, to the previous text, a Turing font. In the <a href="#downloads">download section</a> you can find a list of fonts ready to be used.</li>
</ol>
<p>If you want to use your own substitution alphabets and/or generate your own Turing fonts, I recommend you to <a href="advanced.html">read the advanced topics</a>.</p>
<h3>In documents</h3>
<div class="slidorion">
<div class="slider">
<div class="slide"><img src="img/diapos/docs1.jpg" /></div>
<div class="slide"><img src="img/diapos/docs2.jpg" /></div>
<div class="slide"><img src="img/diapos/docs3.jpg" /></div>
<div class="slide"><img src="img/diapos/docs4.jpg" /></div>
<div class="slide"><img src="img/diapos/docs5.jpg" /></div>
</div>
<div class="accordion">
<div class="header">Download font</div>
<div class="content">Select a font, a substitution method and download the corresponding TTF file.</div>
<div class="header">Install font</div>
<div class="content">Install the downloaded font into your computer.</div>
<div class="header">Encode text</div>
<div class="content">Encode your text using the substitution method previously chosen.</div>
<div class="header">Apply font</div>
<div class="content">Copy the encoded text into a word processor and apply the font installed.</div>
<div class="header">Verify</div>
<div class="content">Verify that the text can be read and export the document as PDF (indicating that the fonts used must be embedded).</div>
</div>
</div>
<h3>In websites</h3>
<div class="slidorion">
<div class="slider">
<div class="slide"><img src="img/diapos/pages1.jpg" /></div>
<div class="slide"><img src="img/diapos/pages2.jpg" /></div>
<div class="slide"><img src="img/diapos/pages3.jpg" /></div>
<div class="slide"><img src="img/diapos/pages4.jpg" /></div>
<div class="slide"><img src="img/diapos/pages5.jpg" /></div>
</div>
<div class="accordion">
<div class="header">Download font</div>
<div class="content">Select a font, a substitution method and download the corresponding Zip file. Unzip the file in one of your website's folder.</div>
<div class="header">Declare font</div>
<div class="content">Declare the selected font in the CSS code of the page in which you are going to use it.</div>
<div class="header">Encode text</div>
<div class="content">Encode your text using the substitution method previously chosen.</div>
<div class="header">Apply font</div>
<div class="content">Copy the encoded text into the page and apply the font.</div>
<div class="header">Verify</div>
<div class="content">Verify that the text can be read.</div>
</div>
</div>
<h2><a name="downloads">Downloads</a></h2>
<p>In this section you will find a list of <em>Turing fonts</em> ready to be used.</p>
<p>Each row of the table contains a font type, and each column indicates the substitution algorithm used for generate the font. For each combination, you can download either a TTF file or a ZIP file (containing the font in all the required formats to be used at the web).</p>
<table class="table">
<thead>
<tr>
<th></th>
<th>ROT13</th>
<th>Atbash</th>
<th>Zebra</th>
</tr>
</thead>
<tbody>
<tr>
<td>Arial</td>
<td>
<a href="fonts/Arial_ROT13.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/arial_rot13.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Arial_Atbash.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/arial_atbash.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Arial_Zebra.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/arial_zebra.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<td>Courier New</td>
<td>
<a href="fonts/CourierNew_ROT13.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/couriernew_rot13.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/CourierNew_Atbash.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/couriernew_atbash.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/CourierNew_Zebra.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/couriernew_zebra.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<td>Georgia</td>
<td>
<a href="fonts/Georgia_ROT13.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/georgia_rot13.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Georgia_Atbash.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/georgia_atbash.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Georgia_Zebra.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/georgia_zebra.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<td>Tahoma</td>
<td>
<a href="fonts/Tahoma_ROT13.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/tahoma_rot13.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Tahoma_Atbash.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/tahoma_atbash.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Tahoma_Zebra.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/tahoma_zebra.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
</tr>
<tr>
<td>Verdana</td>
<td>
<a href="fonts/Verdana_ROT13.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/verdana_rot13.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Verdana_Atbash.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/verdana_atbash.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
<td>
<a href="fonts/Verdana_Zebra.ttf"><span class="glyphicon glyphicon-font" aria-hidden="true"></span></a>
<a href="fonts/verdana_zebra.zip"><span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span></a>
</td>
</tr>
</tbody>
</table>
<p><small>More fonts may be added if you gently ask for them.</small></p>
<h2>License</h2>
<img src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" style="float:left; padding:8px;" />
<p>All fonts, scripts and content of this work are licensed under a <a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank" title="CC BY-SA 4.0">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p>
</div>
<a href="https://github.com/jfmdev/TuringFonts" target="_blank"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/52760788cde945287fbb584134c4cbc2bc36f904/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f77686974655f6666666666662e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png"></a>
</body>
</html>