Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve checkReferrer #86

Closed
wants to merge 1 commit into from
Closed

Improve checkReferrer #86

wants to merge 1 commit into from

Conversation

bezumkin
Copy link
Contributor

One site can work with various domains so checking the HTTP_HOST seems to be more correct.

One site can work with various domains so checking the HTTP_HOST seems to be more correct.
@meenie
Copy link
Owner

meenie commented Aug 20, 2015

I'm wary to make a change like this because it has the potential to mess with people's already working sites. Maybe it could be a configuration where it defaults to SERVER_NAME, but someone can specify a different header to use to grab this information. Also, have a read here: http://stackoverflow.com/questions/2297403/http-host-vs-server-name

@bezumkin
Copy link
Contributor Author

Agree.

@bezumkin bezumkin closed this Aug 20, 2015
@bezumkin bezumkin deleted the patch-1 branch August 25, 2015 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants