Matt B.
Member
Posted 7 years ago #
Hello folks,
I'm trying to tackle comment spam on my blog and found this codex page : http://codex.wordpress.org/Combating_Comment_Spam#Editing_.htaccess_to_Deny_Access_to_-No_Referrer-_Requests which gathers all sorts of useful resources. However, the last line of the .htaccess example looks very weird : here's what I read :
RewriteRule (.*) “http://%{REMOTE_ADDR}/� [R=301,L]
Can someone give me the corrected line as these characters must be wrong ?
Thanks,
dtc
jdunavin
Member
Posted 7 years ago #
I believe that the character is supposed to be the caret ^ (Shift-6).
Matt B.
Member
Posted 7 years ago #
Matt B.
Member
Posted 7 years ago #
Update > I think it should read like this :
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]
Would it be possible for the mods/admins to update the codex page ?
Anyone, including yourself, can edit the Codex. You just need to register for a free account. That's the beauty of community-based documentation. But, don't worry, I've fixed it for you. Thanks for pointing it out.
Matt B.
Member
Posted 7 years ago #
Cool, I did not know we could edit it too !
Thanks for fixing it :)
NuclearMoose
Member
Posted 7 years ago #
There has been some "gibberish" introduced into Codex recently that has shown up on virtually all of the pages. It's a known issue and is being corrected as the errors are found.