Completed

I need JavaScript that checks if a user's IP address is in a range of IPs

I need JavaScript that does the following:

1. Load a list of IP ranges from an external file (like a text, CSV, or similar file). This file should be easy to edit and contains the following information for each entry (there will be multiple entries):

IP start of range

IP end of range

A note

So for example if it’s a CSV, it would look like this:

[login to view URL],[login to view URL],”Owner of this IP range”

[login to view URL],[login to view URL],”Owner of a different IP range”

2. Get the user’s public IP address

3. A function to check if the user’s IP address is in any of the ranges in the external file

4. If the user’s IP is in any of the ranges in the external file, write a cookie called “authcookie” that contains the string “ipok” and the user’s IP address

Notes:

- This is for IPv4 addresses only, no IPv6 needed

- It’s ok to use js libraries/existing code like these to check if the user’s IP is in a range, whatever gives the best performance:

[login to view URL]

[login to view URL]

- I am open to converting the range of IPs into CIDR and checking if the user’s IP is in CIDR blocks

Method of delivery: I would like this packaged as:

- .js file containing the code and function(s)

- .js files for any required library/libraries

- External file with ranges of IPs

- HTML file that calls the JS, displays the user’s IP address, and outputs whether the current IP address is in the range of IPs in the external file

** This project is urgent and will not take much time for an experienced JavaScript coder. I will award the bid to a freelancer who can deliver the project within 24 hours.**

Skills: AJAX, DNS, Javascript, jQuery / Prototype

See more: calculate cidr address range ips, convert cidr ip address range, convert cidr network ip address range, js ip, ip range check, ip address validation in javascript, ip address range validation in javascript, javascript ip mask, javascript check if ip address is in range, check if ip is in cidr range, javascript cidr validation, ajax, javascript, jquery / prototype, dns, current loggedin user ip address php, find youtube user ip address message, ip address friendster user, ip address range converter excel, javascript zip code ip address

About the Employer:
( 22 reviews ) Brooklyn, United States

Project ID: #17595636

Awarded to:

BinhSEO

Hello Jai, Long time no see. It's JS again and you know I'm good at this. Cookie and IP is not a big problem here. I've done for you a hugh AngularJS map for Public Charters. I've been hired full time in past. B More

$111 USD in 0 days
(22 Reviews)
5.0

16 freelancers are bidding on average $150 for this job

Europa17

Hi there Nice to meet you. Just checked out your job description carefully. As a js expert I can do your job in a different ways. One is to use existing libraries/code. Another is to build script from scratch. I More

$222 USD in 3 days
(30 Reviews)
6.4
A2Design

Hello! We are a team of 30+ web developers based in Russia. Our team is interested in developing your project. Having the required skills, we will be glad to help you. We have some questions regarding your projec More

$350 USD in 3 days
(21 Reviews)
6.9
mohamedgb00714

hello I can start the work right now and I will finish the work in the next 6 hours all what I need its the externel file with ip address and I will do the job like you want regards el hadi

$140 USD in 5 days
(55 Reviews)
5.6
mekiho

Dear Employer. Thanks for sharing your requirements here. You want to check ip address if it is in range from the external file. I can do it and I can start right away. I am confident I will deliver it in 24 hrs. More

$155 USD in 3 days
(29 Reviews)
5.4
schoudhary1553

Hello Sir, I am the expert freelancer here. I am on the 6th position through out the world to deliver the quality job. I have deliver here more than 385 + projects with 100% client satisfaction. I have more than 5 More

$250 USD in 1 day
(13 Reviews)
4.5
$100 USD in 1 day
(32 Reviews)
4.7
sypsoo

Project Description I need JavaScript that does the following: 1. Load a list of IP ranges from an external file (like a text, CSV, or similar file). This file should be easy to edit and contains the following info More

$140 USD in 5 days
(7 Reviews)
4.1
YuKai7777

Hello! I am YuKai professional from China. Responding to the bid of the Client is my simple pleasure, and it will be my gratitude for you to respond to my bid. First I want to show you my major skills that I can run More

$200 USD in 3 days
(5 Reviews)
2.8
FashionCStar

Hello I am very interesting your post, because it is very proper my skill I can do your project perfectly with my experience in a day I have 5+years experience in IT field and completed many projects I am very fa More

$155 USD in 3 days
(2 Reviews)
2.7
$200 USD in 1 day
(1 Review)
1.8
iamsmart900

Hello There, My work experience as shown in my profile have helped me develop mastery in Website design & development. I'm a full-stack developer with more than 6 years of work experience. Expert in BOTH Back More

$50 USD in 2 days
(1 Review)
0.6
garethbill

Hi. I reviewed the description in detail and clear what you want. I have strong experience with javascript and very familiar with csv. I will do it as plugin so that you can use any other site easily I can start More

$60 USD in 0 days
(2 Reviews)
0.4
$155 USD in 1 day
(0 Reviews)
0.0
rightroad

Hi there, I can do this for you. I understand exactly what you want. Don't hesitate to contact me! Thank you.

$60 USD in 1 day
(0 Reviews)
0.0
$55 USD in 3 days
(0 Reviews)
0.0