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

How much does these settings affects speed? #130

Open
ckissi opened this issue May 8, 2020 · 1 comment
Open

How much does these settings affects speed? #130

ckissi opened this issue May 8, 2020 · 1 comment

Comments

@ckissi
Copy link

ckissi commented May 8, 2020

I wonder how much does this affects the speed of the Nginx. Anybody measured this?

@dvershinin
Copy link

@ckissi there's no exact measuring of performance penalty, but you can imagine based on the following:

In the worst case, there will be a valid visitor with Referer starting with the letter z. Since this blocker is regex-based, that single request may evaluate up to 4 thousand regular expressions sequentially.

I wrote up an article on the better approach that reduces regular expressions to 1.

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

No branches or pull requests

2 participants