Jump to content

cracking the code


rarebit

Recommended Posts

Hi, i'm doing a site which disallows people to leave contact information in public areas until they subscribe, so I need a way to filter out their attempts...

 

Here's something I did the other day for actually getting true links:

$s = "This is my web address <a href='here.com'>here</a>, This is my web address <a href='here.com' >here</a > xyz";
$pattern = array('/\<a([\w\W]*)\>([\w\W]*)\<([\w\W]*)\/([\w\W]*)a([\w\W]*)\>/isU');
$replacement = array('***');
$ss = preg_replace($pattern, $replacement, $s);

 

Is there anything that anybody already has for this purpose?

How do you hide your address?

 

 

e.g.

joe *t blogs d*t c*m

joe 4t blogs d0t c0m

joe at blogs dot com

 

... etc

 

Link to comment
https://forums.phpfreaks.com/topic/109548-cracking-the-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.