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?
Did you know?Explore Trending and Topic pages for more stories like this.
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
Packet Design
Hi All,
Im new about network programming and I want to design a protocol but I have some question
MySQL Primary key gap
Alright, so I have a table with 26 entries in it (id, filename, caption) for my image randomiser (ht
Extracting URL pointer within XML tag
Hi.
I'm trying to extract text between two quotation marks in XML. For example, I want to ex
header redirect problems? please help
Ok i am making a site that generates youtube thumbnails and i am generating an image that displays 1
How to form a xml form table with a single sql statement..?
Hi everyone,
I don't know if this is going to be a duplicate thread but i couldn't
Navigation include for all site directories
Hi,
I need a navigation include that can deal with directories at different levels on a site.
FAGL_FC_TRANSLATION FAS52 New GL ECC 6.0
Hello,
The new program for Translating GL Balances (FAS 52) gives the option to use diffe
blank page.... nothing is happening.
I'm new to a lot of this but in the last 24hrs have learned a lot.
Installed latest version of my
Renaming a file that a user uploads to site?
My site allows for registered users to upload images to the site under their own gallery. Currently
utl_file open error
i have file in the unix path
Path /popdev01/pop/popdevb/tfi/
File name