:Resume phone number minor obfuscation
This is not fool-proof, but should stop most scrapers, since it would require parsing CSS.master
parent
36a12673b2
commit
8f1cfe3f9c
|
@ -33,7 +33,12 @@
|
|||
</dd>
|
||||
<dt>Phone:</dt>
|
||||
<dd>
|
||||
<span class="phone">+1 (716) 980-7118</span>
|
||||
<span class="nocss">
|
||||
Please enable CSS to see phone number, or view the
|
||||
stylesheet. This is just a precaution against
|
||||
scrapers. Sorry!
|
||||
</span>
|
||||
+1 <div class="phone">9<span class="phony">76</span>80</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
|
|
@ -271,3 +271,19 @@ h1 { font-size: 2.2em; }
|
|||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.nocss,
|
||||
.phony {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* makes it at least a little harder for scrapers */
|
||||
.phone {
|
||||
display: inline-block;
|
||||
}
|
||||
.phone::before {
|
||||
content: '(716) ';
|
||||
}
|
||||
.phone::after {
|
||||
content: '-7118';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue