Hi,
My blacklist code seems to not be effective against a specific range of IP's as I continue to receive emails from my forms submitted by these IP's. I put my IP on the blacklist for testing and the email was successfully blocked and I was correctly redirected to the address I specified. It seems to be working but not against these IP's ('46.229.164.99', '46.229.164.100', '46.229.164.111', '46.229.164.112', '46.229.164.113', '46.229.164.114').
My blacklist code seems to not be effective against a specific range of IP's as I continue to receive emails from my forms submitted by these IP's. I put my IP on the blacklist for testing and the email was successfully blocked and I was correctly redirected to the address I specified. It seems to be working but not against these IP's ('46.229.164.99', '46.229.164.100', '46.229.164.111', '46.229.164.112', '46.229.164.113', '46.229.164.114').
<?
if ( in_array($_SERVER['REMOTE_ADDR'], array('188.143.234.127', '198.27.65.95', '192.74.245.82', '93.115.83.252', '137.175.118.101', '137.175.118.100', '137.175.118.99', '137.175.118.99', '137.175.118.98', '137.175.118.97', '137.175.68.243', '137.175.68.186', '137.175.68.185', '137.175.68.184', '137.175.68.183', '137.175.68.182', '137.175.68.181', '137.175.68.180', '137.175.68.179', '137.175.68.178', '137.175.15.133', '137.175.15.132', '137.175.15.131', '137.175.15.130', '137.175.15.129', '137.175.68.177', '137.175.105.39', '137.175.105.38', '137.175.105.37', '137.175.105.36', '137.175.105.35', '137.175.105.34', '117.27.138.148', '94.242.237.175', '46.229.164.99', '46.229.164.100', '46.229.164.111', '46.229.164.112', '46.229.164.113', '46.229.164.114', '75.74.126.226') ) ) {
$mainframe =& JFactory::getApplication();
$mainframe->redirect('http://www.investinginmiami.com/en/neighborhoods/downtown/98-900-biscayne-bay-condos');
}
?>
Hi nicksab.
I've looked at your code and can't see any obvious reason why the 46.229.164.xxx addresses would get through. Unless they are not being found in $_SERVER['REMOTE_ADDR'] for some reason - it is possible to do more thorough checks of the source IP address.
That block appears to 'belong' to Haldex Ltd in the USA - does that give any clues?
Bob
I've looked at your code and can't see any obvious reason why the 46.229.164.xxx addresses would get through. Unless they are not being found in $_SERVER['REMOTE_ADDR'] for some reason - it is possible to do more thorough checks of the source IP address.
That block appears to 'belong' to Haldex Ltd in the USA - does that give any clues?
Bob
This topic is locked and no more replies can be posted.