Re: [PHP] echo text - anti-spam-spider measure

2007-03-01 Thread Jochem Maas
Richard Lynch wrote:
 You could also use %XX in HEX on the mailto:

you can actually randomly mix and match hex and entity encoding,
which is what the function I posted elsewhere in the thread does.

 
 On Tue, February 27, 2007 11:09 pm, Casey Chu wrote:
 It works. =P I tested it.

 Try it here! =P

 http://themfund.com/snippets/test.php

 On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
 I'm not sure with both of your questions. I'm too lazy to try.

 Untested: But to encode it, you would use

 preg_replace_callback('~([\d\w])~', create_function('$a', 'return
 #.ord($a[0]).;;'), $theEmail);

 Hopefully that works?

 On 2/27/07, John Taylor-Johnston
 [EMAIL PROTECTED] wrote:
 How do I encode it? And would the href tag work?

 Casey Chu wrote:
 ^ So put that into a a href tag.

 On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
 Try using Javascript? Or use all entities? For example:
 mailto:php-general@lists.php.net would turn into
 #109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116;




 On 2/27/07, John Taylor-Johnston
 [EMAIL PROTECTED] wrote:
 I need an anti-spam-spider measure for my site. Too many
 addresses are
 getting raked. In once instance, I created a flash page:
 http://erasethis.glquebec.org/English/contact.htm
 But I just don't have the time to create a flash image for
 every
 single
 instance, most of which come from dynamically printed PHP
 pages from a
 MySQL database.

 Could I dynamically create a flash image, input the email and
 tell the
 flash image to mailto:[EMAIL PROTECTED]

 Do anyone have a solution? Does one already exist?

 My idea was to create a PHP script and output to a png. But I
 see many
 problems, including:

 1) How do I avoid echoing the email address in the a
 href= tag?
 2) How would I write a png that would be long and high
 enough?
 3) How would the same script display the png?

 In short, I can't see far enough how to do this and avoid
 spider-raking
 in the HTML or header the content of the image.

 Any advice, code or input would be appreciated,
 John

 a href=?php

 #what do I put here?
 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ?img src=?php
 |header('Content-type: image/png');|
 #How do I display the image?

 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ? width=??? height=???

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-03-01 Thread Casey Chu

Richard Lynch wrote:
 You could also use %XX in HEX on the mailto:

you can actually randomly mix and match hex and entity encoding,
which is what the function I posted elsewhere in the thread does.



My function also does that: http://themfund.com/snippets/test.php


On 3/1/07, Jochem Maas [EMAIL PROTECTED] wrote:

Richard Lynch wrote:
 You could also use %XX in HEX on the mailto:

you can actually randomly mix and match hex and entity encoding,
which is what the function I posted elsewhere in the thread does.


 On Tue, February 27, 2007 11:09 pm, Casey Chu wrote:
 It works. =P I tested it.

 Try it here! =P

 http://themfund.com/snippets/test.php

 On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
 I'm not sure with both of your questions. I'm too lazy to try.

 Untested: But to encode it, you would use

 preg_replace_callback('~([\d\w])~', create_function('$a', 'return
 #.ord($a[0]).;;'), $theEmail);

 Hopefully that works?

 On 2/27/07, John Taylor-Johnston
 [EMAIL PROTECTED] wrote:
 How do I encode it? And would the href tag work?

 Casey Chu wrote:
 ^ So put that into a a href tag.

 On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
 Try using Javascript? Or use all entities? For example:
 mailto:php-general@lists.php.net would turn into
 
#109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116;




 On 2/27/07, John Taylor-Johnston
 [EMAIL PROTECTED] wrote:
 I need an anti-spam-spider measure for my site. Too many
 addresses are
 getting raked. In once instance, I created a flash page:
 http://erasethis.glquebec.org/English/contact.htm
 But I just don't have the time to create a flash image for
 every
 single
 instance, most of which come from dynamically printed PHP
 pages from a
 MySQL database.

 Could I dynamically create a flash image, input the email and
 tell the
 flash image to mailto:[EMAIL PROTECTED]

 Do anyone have a solution? Does one already exist?

 My idea was to create a PHP script and output to a png. But I
 see many
 problems, including:

 1) How do I avoid echoing the email address in the a
 href= tag?
 2) How would I write a png that would be long and high
 enough?
 3) How would the same script display the png?

 In short, I can't see far enough how to do this and avoid
 spider-raking
 in the HTML or header the content of the image.

 Any advice, code or input would be appreciated,
 John

 a href=?php

 #what do I put here?
 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ?img src=?php
 |header('Content-type: image/png');|
 #How do I display the image?

 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ? width=??? height=???

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php








--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Jochem Maas
Stut wrote:
 John Taylor-Johnston wrote:
 Neat, and thnaks.
 How spam-spider-proof is it? I will try this though.
 But I will also try it with mailto:; in entities as well.
 Thanks!
 John

 !-- HERE ARE THE ENTITIES --
 a
 href=mailto:#109;#101;@#115;#111;#109;#101;#119;#104;#101;#114;#101;.#99;#111;#109;;#109;#101;@#115;#111;#109;#101;#119;#104;#101;#114;#101;.#99;#111;#109;/a

 !--ENTITIES ABOVE!--
 
 Of all the possible methods, entities are the easiest for bots to
 handle. They just need to decode the entities.

in the past I found the following to be annoying enough for harvesters not to 
bother:


function obsfucateString($str)
{
$ret = '';
for ($i=0;$istrlen($str);++$i)
   $ret.= (mt_rand(0,1) ? '#x'.sprintf(%X,ord($str{$i})) : 
'#'.ord($str{$i})).';';

return $ret;
}

no idea if it's still even remotely useful.

 
 More reliable methods involve using javascript to write out the mailto:
 tag. Do it in several statements. But even then, some of the smarter
 spiders will execute simple javascript like that. You can make it better
 by using onload to execute the javascript which means the spider will
 need to implement that, which I don't believe they do at the moment.
 
 Of course the best way is to use an image and don't link it. If it's
 just a way for visitors to contact you, use a contact form. You don't
 expose the email address and can control it a lot better.
 
 -Stut
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread tedd

At 11:22 PM -0500 2/27/07, John Taylor-Johnston wrote:
I need an anti-spam-spider measure for my site. Too many addresses 
are getting raked. In once instance, I created a flash page:

http://erasethis.glquebec.org/English/contact.htm
But I just don't have the time to create a flash image for every 
single instance, most of which come from dynamically printed PHP 
pages from a MySQL database.


Could I dynamically create a flash image, input the email and tell 
the flash image to mailto:[EMAIL PROTECTED]


Do anyone have a solution? Does one already exist?


I agree with Stut that entities are the easiest for bots to handle.

As for myself, I use javascript Enkoder -- you can Google it for a 
way to use it.


As for an example of its use, please review:

http://sperling.com/contact.php

and inspect the source.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Dave Goodchild

On 2/28/07, tedd [EMAIL PROTECTED] wrote:


At 11:22 PM -0500 2/27/07, John Taylor-Johnston wrote:
I need an anti-spam-spider measure for my site. Too many addresses
are getting raked. In once instance, I created a flash page:
http://erasethis.glquebec.org/English/contact.htm
But I just don't have the time to create a flash image for every
single instance, most of which come from dynamically printed PHP
pages from a MySQL database.

Could I dynamically create a flash image, input the email and tell
the flash image to mailto:[EMAIL PROTECTED]

Do anyone have a solution? Does one already exist?

I agree with Stut that entities are the easiest for bots to handle.

As for myself, I use javascript Enkoder -- you can Google it for a
way to use it.

As for an example of its use, please review:

http://sperling.com/contact.php

and inspect the source.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



http://automaticlabs.com/products/enkoderform/

--
http://www.web-buddha.co.uk


Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread John Taylor-Johnston

Can I PHP generate a flash *.swf? How?
If not how do I PHP generate a *.png or gif?

Jochem Maas wrote:

Stut wrote:
  

Of course the best way is to use an image and don't link it.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Richard Lynch
On Tue, February 27, 2007 10:22 pm, John Taylor-Johnston wrote:
 I need an anti-spam-spider measure for my site. Too many addresses are
 getting raked. In once instance, I created a flash page:
 http://erasethis.glquebec.org/English/contact.htm
 But I just don't have the time to create a flash image for every
 single
 instance, most of which come from dynamically printed PHP pages from a
 MySQL database.

 Could I dynamically create a flash image, input the email and tell the
 flash image to mailto:[EMAIL PROTECTED]

 Do anyone have a solution? Does one already exist?

http://php.net/ming
would let you do exactly that, assuming the Actionscript to send the
email will work.

 My idea was to create a PHP script and output to a png. But I see many
 problems, including:

 1) How do I avoid echoing the email address in the a href= tag?
 2) How would I write a png that would be long and high enough?
 3) How would the same script display the png?

You could obfuscate the address with html encoding, such as:
@ - #64; in the HTML
@ - %40 in the URL

I believe the scrapers/spammers are still not bothering to defeat this
trivial exercise because they still get a million hits looking for
plain old emails.

 In short, I can't see far enough how to do this and avoid
 spider-raking
 in the HTML or header the content of the image.

I would suspect that every email is tied to some database record, like
an ID.

Provide a FORM which has only the ID in it, and lookup the email, and
send the email out yourself from your own server.

Yes, you could end up sending a LOT of email.

Or not, since you now control the sending with PHP and can refuse to
send in whatever scenario you find unacceptable.

For example, one of my sites does this but won't send more than 4
emails from any given IP address in one 24-hour period.

So a scraper/spammer would need to alter their IP every 4 POST
operations, which is really more work than they'll put into it.

On a super busy server with millions of users or millions of potential
recipients, this would probably be a big deal...

On MOST websites, you'll essentially be playing postman for a couple
legit emails a day, at most, and not having any problem with
scrapers/spammers.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Richard Lynch
You could also use %XX in HEX on the mailto:

On Tue, February 27, 2007 11:09 pm, Casey Chu wrote:
 It works. =P I tested it.

 Try it here! =P

 http://themfund.com/snippets/test.php

 On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
 I'm not sure with both of your questions. I'm too lazy to try.

 Untested: But to encode it, you would use

 preg_replace_callback('~([\d\w])~', create_function('$a', 'return
 #.ord($a[0]).;;'), $theEmail);

 Hopefully that works?

 On 2/27/07, John Taylor-Johnston
 [EMAIL PROTECTED] wrote:
  How do I encode it? And would the href tag work?
 
  Casey Chu wrote:
   ^ So put that into a a href tag.
  
   On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
   Try using Javascript? Or use all entities? For example:
   mailto:php-general@lists.php.net would turn into
   #109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116;
  
  
  
  
   On 2/27/07, John Taylor-Johnston
   [EMAIL PROTECTED] wrote:
I need an anti-spam-spider measure for my site. Too many
 addresses are
getting raked. In once instance, I created a flash page:
http://erasethis.glquebec.org/English/contact.htm
But I just don't have the time to create a flash image for
 every
   single
instance, most of which come from dynamically printed PHP
 pages from a
MySQL database.
   
Could I dynamically create a flash image, input the email and
 tell the
flash image to mailto:[EMAIL PROTECTED]
   
Do anyone have a solution? Does one already exist?
   
My idea was to create a PHP script and output to a png. But I
 see many
problems, including:
   
1) How do I avoid echoing the email address in the a
 href= tag?
2) How would I write a png that would be long and high
 enough?
3) How would the same script display the png?
   
In short, I can't see far enough how to do this and avoid
   spider-raking
in the HTML or header the content of the image.
   
Any advice, code or input would be appreciated,
John
   
a href=?php
   
#what do I put here?
$mydata-email = [EMAIL PROTECTED];
echo $??;
   
?img src=?php
|header('Content-type: image/png');|
#How do I display the image?
   
$mydata-email = [EMAIL PROTECTED];
echo $??;
   
? width=??? height=???
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
   
   
  
  
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Richard Lynch
On Wed, February 28, 2007 1:20 am, Stut wrote:
 Of all the possible methods, entities are the easiest for bots to
 handle. They just need to decode the entities.

 More reliable methods involve using javascript to write out the
 mailto:
 tag. Do it in several statements. But even then, some of the smarter
 spiders will execute simple javascript like that. You can make it
 better
 by using onload to execute the javascript which means the spider will
 need to implement that, which I don't believe they do at the moment.

 Of course the best way is to use an image and don't link it. If it's
 just a way for visitors to contact you, use a contact form. You don't
 expose the email address and can control it a lot better.

I'm no expert, but as far as I can tell from my readings on this
subject, the reality is that spammers just don't bother to harvest
them.

Ongoing studies, older studies, newer studies.

Everybody knows that the spammers *could* decode HEX or even the JS
fairly trivially, but they don't.

There are many theories [*] as to why that is, but the empirical
evidence is that the obfuscation is very effective at reducing spam
dramatically, no matter how silly that seems.

* Maybe it's too much low hanging fruit.  Maybe they don't want to
risk hitting honey-pot emails.  Maybe anybody smart enough to
obfustcate is too smart to fall for the stupid spam anyway. ...

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-28 Thread Casey Chu

http://themfund.com/snippets/test.php

Has %HEX, #entity;, and even a entity version of the hex!

On 2/28/07, Richard Lynch [EMAIL PROTECTED] wrote:

On Wed, February 28, 2007 1:20 am, Stut wrote:
 Of all the possible methods, entities are the easiest for bots to
 handle. They just need to decode the entities.

 More reliable methods involve using javascript to write out the
 mailto:
 tag. Do it in several statements. But even then, some of the smarter
 spiders will execute simple javascript like that. You can make it
 better
 by using onload to execute the javascript which means the spider will
 need to implement that, which I don't believe they do at the moment.

 Of course the best way is to use an image and don't link it. If it's
 just a way for visitors to contact you, use a contact form. You don't
 expose the email address and can control it a lot better.

I'm no expert, but as far as I can tell from my readings on this
subject, the reality is that spammers just don't bother to harvest
them.

Ongoing studies, older studies, newer studies.

Everybody knows that the spammers *could* decode HEX or even the JS
fairly trivially, but they don't.

There are many theories [*] as to why that is, but the empirical
evidence is that the obfuscation is very effective at reducing spam
dramatically, no matter how silly that seems.

* Maybe it's too much low hanging fruit.  Maybe they don't want to
risk hitting honey-pot emails.  Maybe anybody smart enough to
obfustcate is too smart to fall for the stupid spam anyway. ...

--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread John Taylor-Johnston

How do I encode it? And would the href tag work?

Casey Chu wrote:

^ So put that into a a href tag.

On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:

Try using Javascript? Or use all entities? For example:
mailto:php-general@lists.php.net would turn into
#109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116; 





On 2/27/07, John Taylor-Johnston
[EMAIL PROTECTED] wrote:
 I need an anti-spam-spider measure for my site. Too many addresses are
 getting raked. In once instance, I created a flash page:
 http://erasethis.glquebec.org/English/contact.htm
 But I just don't have the time to create a flash image for every 
single

 instance, most of which come from dynamically printed PHP pages from a
 MySQL database.

 Could I dynamically create a flash image, input the email and tell the
 flash image to mailto:[EMAIL PROTECTED]

 Do anyone have a solution? Does one already exist?

 My idea was to create a PHP script and output to a png. But I see many
 problems, including:

 1) How do I avoid echoing the email address in the a href= tag?
 2) How would I write a png that would be long and high enough?
 3) How would the same script display the png?

 In short, I can't see far enough how to do this and avoid 
spider-raking

 in the HTML or header the content of the image.

 Any advice, code or input would be appreciated,
 John

 a href=?php

 #what do I put here?
 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ?img src=?php
 |header('Content-type: image/png');|
 #How do I display the image?

 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ? width=??? height=???

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu

I'm not sure with both of your questions. I'm too lazy to try.

Untested: But to encode it, you would use

preg_replace_callback('~([\d\w])~', create_function('$a', 'return
#.ord($a[0]).;;'), $theEmail);

Hopefully that works?

On 2/27/07, John Taylor-Johnston
[EMAIL PROTECTED] wrote:

How do I encode it? And would the href tag work?

Casey Chu wrote:
 ^ So put that into a a href tag.

 On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
 Try using Javascript? Or use all entities? For example:
 mailto:php-general@lists.php.net would turn into
 
#109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116;




 On 2/27/07, John Taylor-Johnston
 [EMAIL PROTECTED] wrote:
  I need an anti-spam-spider measure for my site. Too many addresses are
  getting raked. In once instance, I created a flash page:
  http://erasethis.glquebec.org/English/contact.htm
  But I just don't have the time to create a flash image for every
 single
  instance, most of which come from dynamically printed PHP pages from a
  MySQL database.
 
  Could I dynamically create a flash image, input the email and tell the
  flash image to mailto:[EMAIL PROTECTED]
 
  Do anyone have a solution? Does one already exist?
 
  My idea was to create a PHP script and output to a png. But I see many
  problems, including:
 
  1) How do I avoid echoing the email address in the a href= tag?
  2) How would I write a png that would be long and high enough?
  3) How would the same script display the png?
 
  In short, I can't see far enough how to do this and avoid
 spider-raking
  in the HTML or header the content of the image.
 
  Any advice, code or input would be appreciated,
  John
 
  a href=?php
 
  #what do I put here?
  $mydata-email = [EMAIL PROTECTED];
  echo $??;
 
  ?img src=?php
  |header('Content-type: image/png');|
  #How do I display the image?
 
  $mydata-email = [EMAIL PROTECTED];
  echo $??;
 
  ? width=??? height=???
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu

It works. =P I tested it.

Try it here! =P

http://themfund.com/snippets/test.php

On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:

I'm not sure with both of your questions. I'm too lazy to try.

Untested: But to encode it, you would use

preg_replace_callback('~([\d\w])~', create_function('$a', 'return
#.ord($a[0]).;;'), $theEmail);

Hopefully that works?

On 2/27/07, John Taylor-Johnston
[EMAIL PROTECTED] wrote:
 How do I encode it? And would the href tag work?

 Casey Chu wrote:
  ^ So put that into a a href tag.
 
  On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
  Try using Javascript? Or use all entities? For example:
  mailto:php-general@lists.php.net would turn into
  
#109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116;
 
 
 
 
  On 2/27/07, John Taylor-Johnston
  [EMAIL PROTECTED] wrote:
   I need an anti-spam-spider measure for my site. Too many addresses are
   getting raked. In once instance, I created a flash page:
   http://erasethis.glquebec.org/English/contact.htm
   But I just don't have the time to create a flash image for every
  single
   instance, most of which come from dynamically printed PHP pages from a
   MySQL database.
  
   Could I dynamically create a flash image, input the email and tell the
   flash image to mailto:[EMAIL PROTECTED]
  
   Do anyone have a solution? Does one already exist?
  
   My idea was to create a PHP script and output to a png. But I see many
   problems, including:
  
   1) How do I avoid echoing the email address in the a href= tag?
   2) How would I write a png that would be long and high enough?
   3) How would the same script display the png?
  
   In short, I can't see far enough how to do this and avoid
  spider-raking
   in the HTML or header the content of the image.
  
   Any advice, code or input would be appreciated,
   John
  
   a href=?php
  
   #what do I put here?
   $mydata-email = [EMAIL PROTECTED];
   echo $??;
  
   ?img src=?php
   |header('Content-type: image/png');|
   #How do I display the image?
  
   $mydata-email = [EMAIL PROTECTED];
   echo $??;
  
   ? width=??? height=???
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] echo text - anti-spam-spider measure

2007-02-27 Thread John Taylor-Johnston
I need an anti-spam-spider measure for my site. Too many addresses are 
getting raked. In once instance, I created a flash page:

http://erasethis.glquebec.org/English/contact.htm
But I just don't have the time to create a flash image for every single 
instance, most of which come from dynamically printed PHP pages from a 
MySQL database.


Could I dynamically create a flash image, input the email and tell the 
flash image to mailto:[EMAIL PROTECTED]


Do anyone have a solution? Does one already exist?

My idea was to create a PHP script and output to a png. But I see many 
problems, including:


1) How do I avoid echoing the email address in the a href= tag?
2) How would I write a png that would be long and high enough?
3) How would the same script display the png?

In short, I can't see far enough how to do this and avoid spider-raking 
in the HTML or header the content of the image.


Any advice, code or input would be appreciated,
John

a href=?php

#what do I put here?
$mydata-email = [EMAIL PROTECTED];
echo $??;

?img src=?php
|header('Content-type: image/png');|
#How do I display the image?

$mydata-email = [EMAIL PROTECTED];
echo $??;

? width=??? height=???

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu

^ So put that into a a href tag.

On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:

Try using Javascript? Or use all entities? For example:
mailto:php-general@lists.php.net would turn into
#109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116;



On 2/27/07, John Taylor-Johnston
[EMAIL PROTECTED] wrote:
 I need an anti-spam-spider measure for my site. Too many addresses are
 getting raked. In once instance, I created a flash page:
 http://erasethis.glquebec.org/English/contact.htm
 But I just don't have the time to create a flash image for every single
 instance, most of which come from dynamically printed PHP pages from a
 MySQL database.

 Could I dynamically create a flash image, input the email and tell the
 flash image to mailto:[EMAIL PROTECTED]

 Do anyone have a solution? Does one already exist?

 My idea was to create a PHP script and output to a png. But I see many
 problems, including:

 1) How do I avoid echoing the email address in the a href= tag?
 2) How would I write a png that would be long and high enough?
 3) How would the same script display the png?

 In short, I can't see far enough how to do this and avoid spider-raking
 in the HTML or header the content of the image.

 Any advice, code or input would be appreciated,
 John

 a href=?php

 #what do I put here?
 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ?img src=?php
 |header('Content-type: image/png');|
 #How do I display the image?

 $mydata-email = [EMAIL PROTECTED];
 echo $??;

 ? width=??? height=???

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Casey Chu

Try using Javascript? Or use all entities? For example:
mailto:php-general@lists.php.net would turn into
#109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116;



On 2/27/07, John Taylor-Johnston
[EMAIL PROTECTED] wrote:

I need an anti-spam-spider measure for my site. Too many addresses are
getting raked. In once instance, I created a flash page:
http://erasethis.glquebec.org/English/contact.htm
But I just don't have the time to create a flash image for every single
instance, most of which come from dynamically printed PHP pages from a
MySQL database.

Could I dynamically create a flash image, input the email and tell the
flash image to mailto:[EMAIL PROTECTED]

Do anyone have a solution? Does one already exist?

My idea was to create a PHP script and output to a png. But I see many
problems, including:

1) How do I avoid echoing the email address in the a href= tag?
2) How would I write a png that would be long and high enough?
3) How would the same script display the png?

In short, I can't see far enough how to do this and avoid spider-raking
in the HTML or header the content of the image.

Any advice, code or input would be appreciated,
John

a href=?php

#what do I put here?
$mydata-email = [EMAIL PROTECTED];
echo $??;

?img src=?php
|header('Content-type: image/png');|
#How do I display the image?

$mydata-email = [EMAIL PROTECTED];
echo $??;

? width=??? height=???

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread John Taylor-Johnston

Neat, and thnaks.
How spam-spider-proof is it? I will try this though.
But I will also try it with mailto:; in entities as well.
Thanks!
John

!-- HERE ARE THE ENTITIES --
a 
href=mailto:#109;#101;@#115;#111;#109;#101;#119;#104;#101;#114;#101;.#99;#111;#109;;#109;#101;@#115;#111;#109;#101;#119;#104;#101;#114;#101;.#99;#111;#109;/a
!--ENTITIES ABOVE!--



Casey Chu wrote:

It works. =P I tested it.

Try it here! =P

http://themfund.com/snippets/test.php

On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:

I'm not sure with both of your questions. I'm too lazy to try.

Untested: But to encode it, you would use

preg_replace_callback('~([\d\w])~', create_function('$a', 'return
#.ord($a[0]).;;'), $theEmail);

Hopefully that works?

On 2/27/07, John Taylor-Johnston
[EMAIL PROTECTED] wrote:
 How do I encode it? And would the href tag work?

 Casey Chu wrote:
  ^ So put that into a a href tag.
 
  On 2/27/07, Casey Chu [EMAIL PROTECTED] wrote:
  Try using Javascript? Or use all entities? For example:
  mailto:php-general@lists.php.net would turn into
  
#109;#97;#105;#108;#116;#111;#58;#112;#104;#112;#45;#103;#101;#110;#101;#114;#97;#108;#64;#108;#105;#115;#116;#115;#46;#112;#104;#112;#46;#110;#101;#116; 


 
 
 
 
  On 2/27/07, John Taylor-Johnston
  [EMAIL PROTECTED] wrote:
   I need an anti-spam-spider measure for my site. Too many 
addresses are

   getting raked. In once instance, I created a flash page:
   http://erasethis.glquebec.org/English/contact.htm
   But I just don't have the time to create a flash image for every
  single
   instance, most of which come from dynamically printed PHP 
pages from a

   MySQL database.
  
   Could I dynamically create a flash image, input the email and 
tell the

   flash image to mailto:[EMAIL PROTECTED]
  
   Do anyone have a solution? Does one already exist?
  
   My idea was to create a PHP script and output to a png. But I 
see many

   problems, including:
  
   1) How do I avoid echoing the email address in the a href= 
tag?

   2) How would I write a png that would be long and high enough?
   3) How would the same script display the png?
  
   In short, I can't see far enough how to do this and avoid
  spider-raking
   in the HTML or header the content of the image.
  
   Any advice, code or input would be appreciated,
   John
  
   a href=?php
  
   #what do I put here?
   $mydata-email = [EMAIL PROTECTED];
   echo $??;
  
   ?img src=?php
   |header('Content-type: image/png');|
   #How do I display the image?
  
   $mydata-email = [EMAIL PROTECTED];
   echo $??;
  
   ? width=??? height=???
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
  
 
 

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] echo text - anti-spam-spider measure

2007-02-27 Thread Stut

John Taylor-Johnston wrote:

Neat, and thnaks.
How spam-spider-proof is it? I will try this though.
But I will also try it with mailto:; in entities as well.
Thanks!
John

!-- HERE ARE THE ENTITIES --
a 
href=mailto:#109;#101;@#115;#111;#109;#101;#119;#104;#101;#114;#101;.#99;#111;#109;;#109;#101;@#115;#111;#109;#101;#119;#104;#101;#114;#101;.#99;#111;#109;/a 


!--ENTITIES ABOVE!--


Of all the possible methods, entities are the easiest for bots to 
handle. They just need to decode the entities.


More reliable methods involve using javascript to write out the mailto: 
tag. Do it in several statements. But even then, some of the smarter 
spiders will execute simple javascript like that. You can make it better 
by using onload to execute the javascript which means the spider will 
need to implement that, which I don't believe they do at the moment.


Of course the best way is to use an image and don't link it. If it's 
just a way for visitors to contact you, use a contact form. You don't 
expose the email address and can control it a lot better.


-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php