IP Based Cron Jobs
Posted on
16th Feb 2014 07:03 pm by
admin
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized he could reset my cron jobs...woohoo....
Is there a way to get information from the server to make sure it is who it is?
I have my idea below but I would like to know if there was another more secure way of doing this or if my way is fine. Since I also automaticly updating incoming CPA Leads and Paypal IPN the same way as my cronjobs. Paypal IPN does have to make sure there 'account balance' has money through Database so they can't just go throwing money at themselves..Luckily I had thought of that before the visitor went tinkering.
I basicly figured something like if i ran a cronjob and my server ip was 1.1.1.1 and the cronjob sent to http://site.com/cron.php?id=admin22113 coding would be as followed:
Code: [Select]$id=$_GET["id"];
$ip=@$REMOTE_ADDR;
if ($ip==1.1.1.1){
if ($id="admin22113"){
DoFunctions(CronJobs)
}
}
the $id(admin22113) I put as a secondary security measure. Say my own personal passcode to check if its there to say its me.
Only problem with this is my CPA Company IP changes and doesn't do "passcodes". I have to use Get functions to receive data through server so this is a little harder for a visitor to call. If there are any other possible ways please help me out.
No comments posted yet
Your Answer:
Login to answer
196
41
Other forums
Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim
Need help in Generating Combinations
Need help generating all possible combination of names in an array
Lets say i have the follow
php mysql query from input textbox
Hi,
I have a text box, in that i have given the mysql query. I can able to get the query in v
sapgui f4 help last search
I know this has to be simople. One user (maybe more) does not have the "last search saved" from the
The repetition structure: the while statement not working
New programming student, have assignment as follows:
A restaurant has 4 lunch combos for custom
Must be a string? Huh, what? HELP?
with the following script, I get
Fatal error: Property name must be a string in /home/content/e/
Update Database
Hi All,
I have a problem with this:
Code: [Select]<?php
session_start();
I need help with formatting date from mysql! with php!
Hello guys
*Note: this is a php question not MySQL question, please do not move it to mysql s
Setting a default timezone?
I have read about how to change the timezone in PHPMYADMIN, but it changes back, it doesn't STAY the
php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu