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

Adjust rack attack #459

Merged
merged 4 commits into from
Jan 29, 2024
Merged

Adjust rack attack #459

merged 4 commits into from
Jan 29, 2024

Conversation

tramuntanal
Copy link
Collaborator

@tramuntanal tramuntanal commented Jan 29, 2024

🎩 What? Why?

  • Adjust Rack Attack again so we can block bots.
  • Increase session timeout

@tramuntanal tramuntanal self-assigned this Jan 29, 2024
Comment on lines +26 to +37
__END__
headers= []
request.each_header {|h| headers << h };nil
h= Hash[headers]
h.keys

puts "HEADER: #{h.class}"
request.each_header {|h| puts "HEADER: #{h.first}" };nil

request.env["HTTP_X_FORWARDED_FOR"]

curl -i -H "X-Forwarded-For: 95.169.225.62:51586" http://localhost:3000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is that?

@laurajaime laurajaime merged commit 2a54c41 into master Jan 29, 2024
5 checks passed
@laurajaime laurajaime deleted the chore/adjust_rack_attack branch January 29, 2024 08:52
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.

2 participants