Re: echo text - anti-spam-spider measure
| From: | John Taylor-Johnston | Date: | Wed, 28 Feb 2007 05:16:43 +0000 |
| Subject: | Re: echo text - anti-spam-spider measure | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249573@lists.php.net to get a copy of this message | ||
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:me@somewhere.com">me@somewhere.com</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 <heavyccasey@gmail.com> 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 <John.Taylor-Johnston@cegepsherbrooke.qc.ca> 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 <heavyccasey@gmail.com> wrote:-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpmailto:php-general@lists.php.netTry using Javascript? Or use all entities? For example: mailto:php-general@lists.php.net would turn intoaddresses areI need an anti-spam-spider measure for my site. Too manyOn 2/27/07, John Taylor-Johnston <John.Taylor-Johnston@cegepsherbrooke.qc.ca> wrote: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 everypages from ainstance, most of which come from dynamically printed PHPsingleMySQL database. Could I dynamically create a flash image, input the email andtell theflash image to mailto:the@address.com? Do anyone have a solution? Does one already exist? My idea was to create a PHP script and output to a png. But Isee manyproblems, 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 avoidin 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 = "me@somewhere.com"; echo $??????????; ?>"><img src="<?php |header('Content-type: image/png');| #How do I display the image? $mydata->email = "me@somewhere.com"; echo $??????????; ?>" width="???" height="???"> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpspider-raking