{"id":1114,"date":"2015-02-27T12:41:02","date_gmt":"2015-02-27T16:41:02","guid":{"rendered":"http:\/\/www.blogseye.com\/?p=1114"},"modified":"2015-02-27T12:41:47","modified_gmt":"2015-02-27T16:41:47","slug":"stop-spammers-and-cloudflare","status":"publish","type":"post","link":"http:\/\/blogseye\/2015\/02\/stop-spammers-and-cloudflare.html","title":{"rendered":"Stop Spammers and CloudFlare"},"content":{"rendered":"
In previous version I was trying to work around CloudFlare in the Stop Spammers plugin. I would suggest to people that if they use CloudFlare that they must turn on the CloudFlare Plugin supplied by CloudFlare.<\/p>\n
Unfortunately, only a few users actually do this and as a result the Stop Spammers plugin is not very effective for most people who use CloudFlare. If CloudFlare is an automatic feature provided by their hosting company, they might not even know it is there.<\/p>\n
I just reversed my position and the plugin now detects CloudFlare and fixes the IP if it is found. It only does this if the CloudFlare plugin is not installed and active.<\/p>\n
This is a real issue in that I need to update my plugin when CloudFlare changed its plugin. It would be much easier if every hosting company that uses CloudFlare as feature would correct the IP right in Apache so that PHP would always see the real IP.<\/p>\n
I am running this website under CloudFlare using my plugin with the CloudFlare plugin turned off. Soon, CloudFlare will start caching pages and I should see hits with a CloudFlare IP. I will be able to tell then if the plugin works.<\/p>\n
I have many new things in the plugin and I am eager to release it. CloudFlare is holding it up.<\/p>\n
On a excited note, the coding of the CloudFlare fix got a little complicated and I thought suddenly that a GOTO would have solved the problem. I remember that PHP still supports a GOTO. I had the pleasure of putting a GOTO into my code and it works!!! I haven’t coded a goto in a high level language in 25 years. It was a great pleasure to to it. Dijkstra be damned!<\/a><\/p>\n Keith<\/p>\n","protected":false},"excerpt":{"rendered":" In previous version I was trying to work around CloudFlare in the Stop Spammers plugin. I would suggest to people that if they use CloudFlare that they must turn on the CloudFlare Plugin supplied by CloudFlare. Unfortunately, only a few users actually do this and as a result the Stop Spammers plugin is not very […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/posts\/1114"}],"collection":[{"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/comments?post=1114"}],"version-history":[{"count":2,"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/posts\/1114\/revisions"}],"predecessor-version":[{"id":1116,"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/posts\/1114\/revisions\/1116"}],"wp:attachment":[{"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/media?parent=1114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/categories?post=1114"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blogseye\/wp-json\/wp\/v2\/tags?post=1114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}