anti spam script php

Gestart doorDaiman0 reacties40 weergaven

1 berichten · pagina 1 van 1

Daiman

Lid · Topicstarter

Berichten
5.795
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
heya

ik ben bezig met een aantal dingen en had niet veel te doen vandaag dus ik ging maar weer eens scripten

en ik zet me nu meer in voor open-source scripts/programmas

en er is nu uitgekomen een anti spam script
hij encode je email adres
omdat bots meestal in de source code kijken heb ik dat gecodeerd

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/class"]class[/URL] spam [COLOR= #007700]{
function[/COLOR] anti[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]) {[/COLOR]
[COLOR= #0000BB]$nieuw[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]@[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]<apenstaart%20%40>@</apenstaart%20%40>[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$email[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$nieuw[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000].[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]<puntje%20%40>.</puntje%20%40>[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$nieuw[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$nieuw[/COLOR][COLOR= #007700];
}
}[/COLOR]
[COLOR= #0000BB]$new[/COLOR] [COLOR= #007700]= new[/COLOR] spam[COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$new[/COLOR][COLOR= #007700]->[/COLOR]anti[COLOR= #007700]([/COLOR][COLOR= #DD0000]emailadreshier[/COLOR][COLOR= #007700]);[/COLOR]

?>


wat doet het script?
hij zet @ om in @ %20 is spatie en %40 apenstaartje

dus hij kopieert dan zowizo jouw email verkeert
en hij doet het zelfde bij .
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren