Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Email obfuscation using SIFR? or other text replacement techniques?
Has anyone ever heard of any type of script that could search through a site, finding any text@text.text structured mailto links, then apply a certain class to tag to them, which would then be picked up by a image replacement script like SIFR or Zem_ir?
Just theorizing here, but that could be frickin cool.
That way you could let a client just type in joe@jim.com and it would be made into a safe mailto img link.
Am I smokin crack?
:) Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#2 2006-09-20 23:07:59
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Email obfuscation using SIFR? or other text replacement techniques?
Might not be too hard to do on a static site. A bit more problematic on soemthing db driven.
The just typing in is something else entirely.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: Email obfuscation using SIFR? or other text replacement techniques?
nyteOwl,
howdy.
Why would it differ from a static and db site?
Does it have to do with order of parsing?
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#4 2006-09-22 02:06:20
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: Email obfuscation using SIFR? or other text replacement techniques?
On a static site you could just open a console session, write your script (something using regex and parsing the files) and run it against the files in a directory or set of directories.
It becomes more complicated in a dynamic database driven site as the page content isn’t stored in files to parse, but in entries in one or more tables of a database. You could always search through the database doing a similar find and replace but it’s a bit more complicated is all.
Once you had the historical data “washed”, you would need to incorporate the ability into the CMS software, either in the base system or via plugin, to do it automatically on submitted content.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Re: Email obfuscation using SIFR? or other text replacement techniques?
NyteOwl,
Thanks. That clears it up.
Hmm. Seems complicated :(
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#6 2006-09-25 21:07:39
- guiguibonbon
- Member
- Registered: 2006-02-20
- Posts: 296
Re: Email obfuscation using SIFR? or other text replacement techniques?
Er… wouldn’t the link still remain in the source? Or did i get this wrong?
Offline
Re: Email obfuscation using SIFR? or other text replacement techniques?
Not if its obfuscated. ie: turned into character entities, which isn’t fool proof, but better than nothing.
I often find it difficult to help clients get those email addresses in their posts to be spam proof.
Another reason for trained website managers :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#8 2006-09-25 23:20:34
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Email obfuscation using SIFR? or other text replacement techniques?
ma_smith wrote:
I often find it difficult to help clients get those email addresses in their posts to be spam proof.
Good to know it isn’t just me struggling with that! ;-)
It would be brilliant to also have an email tag builder, like the one under presentation > pages, in the article write tab. Ideally the clients would just need to fill in the address and link text and then click “Insert Email”, that would save them to select and copy&paste the code – much like Mary’s Image Popper does.
Cheers Martin
Last edited by masa (2006-09-25 23:22:21)
Offline
Re: Email obfuscation using SIFR? or other text replacement techniques?
oohhhh, Martin,
That’s a great idea. I think I’ll add it to the plugin requests list.
DONE! See the result here
Last edited by ma_smith (2006-09-26 20:02:01)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline