PDA

View Full Version : Remove emails & URL administration hack


Ageel
09-05-2002, 02:19 AM
Hi all there

I have a forum
and would like to hide all email in the posts so nobody can post his email address in my forum.

Is there any hack to do that for me?!!

I tried using the BBCODE to replace emails with stars
but if somebody QUETE the post, the email will be shown

Any Idea?!!

Thanx

Logician
09-05-2002, 09:17 AM
You can remove them before they are written to your database, so it cant be passed:

Add

$message=ereg_replace('[A-Za-z0-9]([A-Za-z0-9._]*[A-Za-z0-9]|())@[A-Za-z0-9]([A-Za-z0-9.\-]*[A-Za-z0-9]|())\.[A-Za-z]+', ' -Posting Emails is Not Permitted! -', $message);


After

// remove sessionhash from urls:

(both in newreply.php and newthread.php)

However you must regard that whatever you do, you cant prevent a wise user who could easily pass all keyword bannings by writing like this:

name at sirname.com
name @ sirname.com
First part of my email is "name", second part is "sirname.com"
etc. ;)

This is just the fate of all ban mechanisms on the internet..