periodic link validation and state updating
| Project: | Link |
| Version: | HEAD |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Option for links to be checked periodically for HTTP errors.
If 4xx errors are returned when checked, conditionally unpublish the node based on user settings if it fails to respond after some user specified amount of time. Depending on which 4xx code is returned, update the link accordingly. 404 be marked as invalid after a certain amount of time/retries, most others (ie 410) would immediately be marked as invalid.
Check links for 301 permanent redirects and update the link when it occurs.
Add a new generated data type that can be accessed by View module for displaying the last known link status, ie "Check Date" for last time it was updated, "Status Message" would be the human readable name of the HTTP error code suitable for display in the table, "Status Code" would be the numeric code that could be used by view filters to have the view only show nodes whose links were code 200 OK.
HTTP error reference: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

#1
This would be an excellent addition to this module! Any site that incorporates any sort of web directory needs a a way of validating then periodically. Please, please, please incorporate this feature!
#2
Yea.. I support the same as well... I was doing something like that in my old perl-based site and it should be very nice to have it back in drupal ;-)
An other option could be to periodically revalidate it using the cron framework and make a view with the summary status of all invalid links and from when, so admin can easily change them or remove the link or remove the whole node containing them..
#3
Maybe even better, it should be nice to add http://drupal.org/project/links - Links Package API support. They are working on a global link checker....and we could also have other benefits (central link management, outlinks click tracking, etc)
#4
Totally agree with Eric ! A lot of work, however !
#5
jredding is planning on implementing a module that does the link checking in a separate module. Since I don't plan on implementing this ever into Link module directly, let's follow the progress there: http://drupal.org/node/236183