Find Jobs
Hire Freelancers

help in a php code

$2-8 USD / hour

Completed
Posted about 9 years ago

$2-8 USD / hour

Hi I'm not good in php I need someone to help me in an auth file, I've a link protected with a header("HTTP/1.0 200 OK") [login to view URL] I'm using: =================================== $get = print_r($_GET, true); $token = $_GET["token"]; if(!$token || !strlen($token)) { header('HTTP/1.0 403 Forbidden'); error_log("No token provided", 4); die(); } $tokens = array(); $contents = explode("\n", file_get_contents("[login to view URL]")); foreach($contents as $line) { if(strlen($line) > 3) { $parts = explode(":", $line); $tokens[$parts[1]] = $parts[0]; } } if($tokens[$token]) { header("HTTP/1.0 200 OK"); header("X-UserId: ".$tokens[$token]."\r\n"); header("X-Unique: true\r\n"); // Turn this on to protect from multiscreen } else { header('HTTP/1.0 403 Forbidden'); } =================================== and [login to view URL]: ================================== user1:fKg5sw0Dhy ================================== the problem is my token fKg5sw0Dhy is visible, so I want to edit my php file to hide my token with a combination of md5, expiration after xx seconds and user ip. something like: ========================= date_default_timezone_set('UTC'); $ip = $_SERVER['REMOTE_ADDR'] = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];; $mysecretkey = "fKg5sw0Dhy"; $expiry = strtotime("+50 seconds"); $b64 = base64_encode(md5($mysecretkey.$expiry.$ip,true)); $b64u = rtrim(str_replace(array('+','/'),array('-','_'),$b64),'='); echo "[login to view URL]$b64u\n"; ========================= it's a 5min's task for any php coder, I'll consider the lower bid
Project ID: 7385193

About the project

7 proposals
Remote project
Active 9 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
A proposal has not yet been provided
$11 USD in 1 day
5.0 (13 reviews)
4.1
4.1
7 freelancers are bidding on average $8 USD/hour for this job
User Avatar
php expert please message me so we can get started and have it done i am just doing it for the review so please message me and we can discuss price u want to pay Hello, I have read through your project and I am incredibly interested in taking on your project. I am an experienced developer with a diploma in the field of web development. I have been working in the field of web development for roughly 7 years. I take great pride in my work and deliver only the best quality. My skill-set includes... -PHP -HTML5 -CSS -AJAX -Responsive Design -Joomla -Wordpress -Magento -Photoshop -Illustrator -Video Editing -Data entry I look forward to hearing from you and hopefully we will have the opportunity to work together. Thank you, Meagan S.
$8 USD in 1 day
4.8 (77 reviews)
6.0
6.0
User Avatar
========Please Don't award this project to us without discussing this project in detail============ Hi, I (Myself a senior PHP, ASP.NET programmer using C# and VB) have a team having experience of more than 10 years in developing web and mobile applications. I have a team of expert programmers who write robust and bug-free codes at the very first instance. After seeing our quality of work and the cooperation offered to you even after the work has been delivered to you, you’ll come to us again and again to avail our services. I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I can achieve the results that you are asking for within your timeframe and budget. I am confident I can exceed your expectations and I would love to work on your project. Thanks, Priyanka
$15 USD in 1 day
4.8 (25 reviews)
5.9
5.9
User Avatar
Since I have worked possible solution for keeping it up Puedo brindar la solución del problema tengo experiencia con php sobre todo orientado al servidor El tiempo que oferto lo puedo cumplir perfectamente . saludos
$5 USD in 1 day
5.0 (1 review)
2.0
2.0
User Avatar
I can help you now with what you need. start a chat with me and i will do it as soon as you like me to start..
$2 USD in 1 day
3.4 (1 review)
1.5
1.5

About the client

Flag of MOROCCO
tanger, Morocco
5.0
18
Payment method verified
Member since May 29, 2013

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.