Title: Bug: &#039;Undefined index: HTTP_REFERER&#039;
Last modified: August 31, 2016

---

# Bug: 'Undefined index: HTTP_REFERER'

 *  Resolved [timjrye](https://wordpress.org/support/users/timjrye/)
 * (@timjrye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/)
 * I have a bug with this plugin on several websites:
 * `Notice: Undefined index: HTTP_REFERER in [...]/wp-content/plugins/block-referer-
   spam/lib/RefSpamBlocker.php on line 239`
 * Looks like the plugin isn’t checking whether `$_SERVER['HTTP_REFERER']` exists
   before trying to use it… could do with a check there!! If it doesn’t exist, the
   function could simply `return true`.
 * Please update ASAP – I would like to update on my client sites.
 * Thanks,
 * Tim
 * [https://wordpress.org/plugins/block-referer-spam/](https://wordpress.org/plugins/block-referer-spam/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [timjrye](https://wordpress.org/support/users/timjrye/)
 * (@timjrye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/#post-6905446)
 * Any update on this?
 *  Plugin Contributor [codestic](https://wordpress.org/support/users/codestic/)
 * (@codestic)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/#post-6905447)
 * Hi timjrye,
 * sorry for the late reply, there is no excuse for this so I won’t make one up!
   🙂
 * I am currently in the process of relocating to a new country, lots of interviews
   and lots of other stuff going on, which prevented me from pushing an update. 
   I really hope that within the next week I can push the update (which will include
   this bugfix and other changes).
 * I apologise again for the delay and appreciate the feedback!
 * Rob
 *  Thread Starter [timjrye](https://wordpress.org/support/users/timjrye/)
 * (@timjrye)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/#post-6905448)
 * That’s understandable! No worries. In the meantime I have just deactivated the
   plugin on all my sites.
 *  [rscotton](https://wordpress.org/support/users/rscotton/)
 * (@rscotton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/#post-8186520)
 * Hi all
 * Bumping this again – the bug is still intact, now at line 242. Can we reopen 
   and resolve?
 * Thanks!
 *  Plugin Author [supersoju](https://wordpress.org/support/users/supersoju/)
 * (@supersoju)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/#post-8186898)
 * Patched in version 1.1.8.2!
 *  [rscotton](https://wordpress.org/support/users/rscotton/)
 * (@rscotton)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/#post-8187826)
 * Thank you!!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Bug: 'Undefined index: HTTP_REFERER'’ is closed to new replies.

 * ![](https://ps.w.org/block-referer-spam/assets/icon-256x256.png?rev=1553044)
 * [Block Referer Spam](https://wordpress.org/plugins/block-referer-spam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-referer-spam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-referer-spam/)
 * [Active Topics](https://wordpress.org/support/plugin/block-referer-spam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-referer-spam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-referer-spam/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [rscotton](https://wordpress.org/support/users/rscotton/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/bug-undefined-index-http_referer/#post-8187826)
 * Status: resolved