[IMC-Tech] Anonymizing Wordpress
2600denver at gmail.com
Thu Feb 12 10:53:42 PST 2009
-----BEGIN PGP SIGNED MESSAGE-----
I'm not sure how many of you use wordpress, but this should be helpful
for those who do. I looked all around and to my surprise I couldn't find
any articles on how to do this. It's obviously not all you need to do,
as Wordpress is by no means privacy-centric.
Wordpress provided no default way to disable the logging of personally
identifiable information. After messing around in the DB some, I found
you can just go to wp-settings.php and add the following line:
You can't do it in the first part of the file because you're declaring a
variable that is going to scrap soon after. I personally did mine right
before "// Fix empty PHP_SELF" but you can probably put it anywhere
after the first routine. I'm not sure if you'd have to re-do this every
time you upgraded wordpress, but it's likely. For this reason, a
plugin/script would have to be written.
Of course, you can replace 0.0.0.0 with anything you want. Wordpress
just thinks that every visitor has whatever IP you put in there.
I did a quick grep and found that the following files also have that
call in them:
Some of my plugins also used it. It is my guess that since this is a
global variable, it doesn't matter what other files do since they'd
always arrive at 0.0.0.0.
You can use the same method to block referrer tracking as well. Just add
If anybody is experienced in PHP, it would be fairly simple to make a
plugin to do this. Hopefully somebody else can make use of the several
hours I put into figuring this out.
Now onto the rest of the privacy problems with Wordpress.....
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the imc-tech