Jerry - I don't really understand the syntax of the code either. I assume two 'sections' of code would do the job, viz:
Code: Select all
if($a=='sign') {
$domainname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$topleveldomain = substr($domainname,-22);
if ($topleveldomain == '.neoplus.adsl.tpnet.pl') {
problem($lang['e01'],0);
}
printSign();
if($a=='sign') {
$domainname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$topleveldomain = substr($domainname,-26);
if ($topleveldomain == 'nat-area00.dialup.renet.ru') {
problem($lang['e01'],0);
}
printSign();
Unlike the existing Poland domain, note that the second part of the above code hasn't got a '.' in front of 'nat-area00.dialup.renet.ru', because nat-area00.dialup.renet.ru is I
think the complete domain from which you are getting new spam. I think this may correctly identify the source of your new spam. The value of '26' in the previous line has to match the exact number of characters, including period marks, in the address domain you are citing.
Please advise if you get any success with the above, Jerry.
I expect the code could be combined in a better and/or more efficient way, but I'm not sure how it should be structured - as
a completely wild guess, something like the following???:
Code: Select all
if($a=='sign') {
$domainname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$topleveldomain = substr($domainname,-22);
if ($topleveldomain == '.neoplus.adsl.tpnet.pl') {
problem($lang['e01'],0);
$domainname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$topleveldomain = substr($domainname,-26);
if ($topleveldomain == 'nat-area00.dialup.renet.ru') {
problem($lang['e01'],0);
}
printSign();
Perhaps Franz or Klemen or one of the others more acquainted with coding can advise on a better way of concatenating the domain sources in the code. It would be a good idea to know this, because we're all likely to be subject to experiencing spam from multiple sources, and knowing the right methodology would be useful for everyone.
Russ