简体   繁体   中英

Filter URL's with regular expressions in php

What I'm trying to do is to block any kind of url and links posted on my site, The thing is that these people started posting these links like that for example:

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

They are using many different variations, and I don't know what to do in order to block them all. Thank you

You should consider using a spam-checking service like akismet and incorporate that into your site. It will help you catch spam like that.

This way, you wont have to struggle with regex.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM