Find Jobs
Hire Freelancers

Develop a simple nginx module to count received http requests for each IP address

€10-100 EUR

Completed
Posted over 8 years ago

€10-100 EUR

Paid on delivery
I need a simple nginx module to be developed The module will need to accomplish a simple task: Counting the number of http requests that an IP address does to a website The requirement is to have available in nginx a new variable: $remote_addr_request_count_today It should count the requests filtering them on daily basis E.g. when IP 1.1.1.1 makes the first HTTP request you'll have: $remote_addr_request_count_today=0 second request: $remote_addr_request_count_today=1 and so on... now imagine you'll end in this at the end of the day: $remote_addr_request_count_today=250 But at midnight, or the next day the count will be reset to 0 (you can implement this simply storing the IP+date as an hash in your storage for the counter stats As storage you can use simple flat file writing, SQLite, memcached, mysql or redis (up to you, pick the simpler, flat file should be good enough but needs to be optimized coding to read/write it, to avoid bottlenecks and cuncurrency issues when there's much traffic. Note: nginx modules are written in C, see here for an example to start, it's a module already working on IP addresses and creating new variables, so this example is very good as a starting point for your work: [login to view URL]
Project ID: 9257343

About the project

4 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I have a lot experience in C programming under Linux. I can make this project with best quality and just in time. Regards, Alexander
€69 EUR in 3 days
5.0 (9 reviews)
3.9
3.9
4 freelancers are bidding on average €94 EUR for this job
User Avatar
Hello, I have experience with stuff like this, I have implemented something similar for apache. (I didn't work very much with nginx)
€118 EUR in 2 days
5.0 (4 reviews)
3.6
3.6
User Avatar
A proposal has not yet been provided
€89 EUR in 3 days
3.6 (4 reviews)
2.2
2.2
User Avatar
Propunerea nu a fost încă furnizată
€98 EUR in 0 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ITALY
Mignano Monte Lungo, Italy
5.0
19
Member since Jul 13, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.