Php regex filter url

What I'm trying to do is block any URLs and links posted on my site, the fact is that these people started to post these links, for example:

W/W/W.DOMAIN.C/O/M
W//W//W//.DOMAIN.C//O//M

They use many different options, and I don’t know what to do to block them all. Thanks you

+5
source share
1 answer

You should consider using a spam check service, such as akismet , and include it on your site. This will help you catch spam.

This way you do not have to contend with regex.

+2
source

All Articles