Quote:
|
Originally Posted by Enigma121
We can make assumptions about how spiders behave in general, but anyone writing a spider for the basis of spamming might well look through the entire response for numbers (I know I would).
|
Agreed, if the phone number is still stored as "0800 1234567" in the javascript.
But if you represent your phone number as a mini-algorithm, something like, forgive me writing pseudocode here, haven't the time to code it and haven't written much javascript in a long number of years
$a = ((7*11)-1)*1000000000;
$b = 907*987897;
$c = ((5*11)-1)*10000000;
$d = ((3*10)+1)*(100*1000);
$e = ((3*19)+12)*(100*1000);
$f = 100 * 100;
$g = 4 * 20;
$x=$a + $c + $d +$f +$g;
$y=reverse($x);
$z=y.replace("800", "800 ");
print $z;
this sort of solution uses a series of simple maths and string functions to build up the number. The number can then be displayed by the javascript, and it's still text as far as the user is concerned, so (s)he can copy/paste it into any other application.
It's fairly unlikely that a spam spider would take on the overhead of churning through all javascript on a page on the off chance that there might be a phone number in there. It would be far happier going for the option of extracting easy numbers quickly fromm more pages, than doing a fraction of the pages more thoroughly.