Announcements » External access to verify links

added on Jul 9, 2006 by v0id
I have made it possible for remote services to initiate the link verification process. This means that you can have a
cronjob to verify your links every now and then.

First you need to enable cron check. Find the "Enable cron check" in the settings, and check it.

To enhance security, a passphrase can be used. This should not be you admin password, and it can be empty.

To enchance security even more, you can limit the IPs with access to the cron check.

You can have the script send you a summary of the check.

When every thing is setup, you can initiate the cron check by going to the following URL:
http://[your domain]/linkex/?page=check&passphrase=[the passprase from the settings]

The script gives an output, where 0 is error, and 1 is successful.
When an error occurres, a description is given.

To do a regular automated check, you can setup a cronjob. If you do not know how to set it up, you should consult your
hosting provider.
Or you can throw a message in the forums, and perhaps I can help.

Currently you can only initiate it throug the "web", so you properly should use a commandline browser or
webfetcher like <em>wget</em>, <em>lynx</em> or <em>fetch</em>.

As always, if you experience any problems or errors, let me know!

- v0id
added on Jul 9, 2006 by Jamo
Hi!

I really like to know how to set up a cronjob.

Jamo
added on Jul 12, 2006 by v0id
Sure thing. I'll write a guide as soon as I have a few minutes :)
added on Mar 28, 2007 by Jamo
Hey v0id!

We talked a few times about my host setting up the cronjob for me.
I now get the result of the job mailed but in the linkex admin it still says the links are not checked (only a date of
when i did it manually).

This is what i get mailed:
-----------------
--10:30:01-- http://www.anna-zoekt.nl/linkruiltjuh/?page=check
=> `index.html?page=check.1'
Resolving www.anna-zoekt.nl... 217.170.3.184
Connecting to www.anna-zoekt.nl[217.170.3.184]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K 312.50 KB/s

10:30:02 (312.50 KB/s) - `index.html?page=check.1' saved [32]
--------------
Could you tell me what's wrong?
Does it have something to do with the passpphrase i don't see?
Jamo
p.s. the folder linkruiltjuh=linkex
added on Mar 29, 2007 by Jamo
Oh! I now see the passphrase in the subject of the mail:
Cron <camboys@server15> wget http://www.anna-zoekt.nl/linkruiltjuh/?page=check&passphrase=****
added on May 17, 2007 by pascal
I am trying to setup the cronjob, when running the cronjob I get :

HTTP request sent, awaiting response... 200 OK
Length: 32 [text/html]
index.html?page=check: Permission denied

Cannot write to `index.html?page=check' (Permission denied).

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.