Project

General

Profile

« Previous | Next » 

Revision d7bf3178

Added by Erik Fonnesbeck over 14 years ago

Various fixes and improvements for the DNS rebind and HTTP referrer checks.

  • Only compare with full host from referrer, since someone can put whatever they want at the left side of the period to the left of the domain name.
  • Now can check for hostname as well, not just hostname.domain, in referrer check.
  • Fix althostnames case for referrer check.
  • Move the simpler, more commonly used cases above the ones involving foreach loops and skip the loops when a name match has already been found.
  • Break out of foreach loops when a match has already been found.
  • Do case-insensitive matching of hosts and domains.
  • Remove useless checks of non-IP addresses against SERVER_ADDR.
  • added
  • modified
  • copied
  • renamed
  • deleted