It's been a few years since I put up rawfoodwiki.org. So, a few years since I looked at the code. It's been running fine until recently, when a hacker keeps insisting on ruining my home page, no matter how many times I go back and replace it with the original content. I can see how to find the IP address, at least for the several time's he's posted. how do I block him? Will it work?
Margie
mroswell@charm.net
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I appreciate very much your reply! However, I must have a prior version of PHPWiki. That code doesn't exist in mine. Closest I have in the lib directory is Request.php, in code I copy below.
It's been a few years since I put up rawfoodwiki.org. So, a few years since I looked at the code. It's been running fine until recently, when a hacker keeps insisting on ruining my home page, no matter how many times I go back and replace it with the original content. I can see how to find the IP address, at least for the several time's he's posted. how do I block him? Will it work?
mroswell@charm.net
somewhere early (lib/main.php)
if ($_SERVER['REMOTE_ADDR'] == '128.0.0.someip') {
$GLOBALS['request']->setStatus(403);
exit;
}
Hi,
I appreciate very much your reply! However, I must have a prior version of PHPWiki. That code doesn't exist in mine. Closest I have in the lib directory is Request.php, in code I copy below.
ah, maybe your suggesting that I ADD that code.
Where would I add it?
How do I add multiple IP addresses?
Sincerely,
Margie