[pmwiki-users] how to see IP addresses to enter into Blocklist
Radu
radu at monicsoft.net
Mon Aug 8 11:44:30 CDT 2005
You may want to look at:
http://www.pmwiki.org/wiki/Cookbook/Blocklist2
and
http://www.pmwiki.org/wiki/Cookbook/BlocklistHelperScripts
Incidentally, this may work better for testing
for the IP (than simply REMOTE_ADDR):
$ip;
if (getenv("HTTP_CLIENT_IP")) $ip = getenv("HTTP_CLIENT_IP");
else if(getenv("HTTP_X_FORWARDED_FOR)) $ip = getenv("HTTP_X_FORWARDED_FOR");
else if(getenv("REMOTE_ADDR")) $ip = getenv("REMOTE_ADDR");
else $ip = "UNKNOWN";
I place it here rather than on the cookbook page
because there may be server gurus around who may
have a problem (or many) with the suggestion :)
Also, isn't there a core-pmwiki variable that
figures out the IP? If so, it should probably be mentioned on:
http://www.pmwiki.org/wiki/PmWiki/PathVariables
At 11:01 AM 8/8/2005, Hugo Fjelsted Alrøe wrote:
>I am under spam attack and would like to know
>how see the IP addresses of the vandals to enter them into Blocklist.
>
>I found a recipe on
>http://www.pmwiki.org/wiki/Cookbook-V1/AboutVandalism
>for how to make the IP address visible on
>RecentChanges (see below), but could not get it
>to work (I dont think ThisWiki: works anymmore,
>so I replaced it with the real url, but it still does not work.)
Cheers,
Radu
(www.monicsoft.net)
More information about the pmwiki-users
mailing list