Active
Project:
Boost
Version:
6.x-1.18
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2011 at 15:14 UTC
Updated:
1 Nov 2011 at 06:26 UTC
How to stop boost crawler to hit external links?
Thanks in advance.
Comments
Comment #1
drib commented_____________________
Descoperiti carti bune!
Comment #2
TimelessDomain commentedboost does not cache external links. are you worried about boost crawler crawling outside your website & onto external websites? i don't think that it has this functionality, so no problem here. someone else please confirm this before closing issue
Comment #3
mikeytown2 commentedBoost doesn't read the html's content looking for links. Uses the url_alias table.
Comment #4
drib commentedThanks for your answers. I know that boost uses url alias table, but I'm using a CCK redirection field that points to an external link (I noticed later that this was the reason for hitting that external links).
Even when I'm using this code (found it on http://drupal.org/node/805246):
on "PHP code returns TRUE", with "Crawl All URL's in the url_alias table" checked, seems the Boost crawler hits the external link through that CCK redirection field.
To rephrase, I want Boost not crawl the nodes with a CCK redirection field when "Crawl All URL's in the url_alias table" is checked. Is this possible?
Thank you again for your answers.
Comment #5
mikeytown2 commentedTry this code
Comment #6
mikeytown2 commented_cck_redirection_get_redirect_fields looks interesting. I would need to join the node type to the url alias table at a reasonable speed in order to do this.
Comment #7
drib commentedI tested the code and so far it looks fine. I'll test it more and I'll come back with results.
Thank you very much for your work and for answers.
_____________________
Descoperiti carti bune!
Comment #8
drib commentedIt works fine until I used again "Crawl All URL's in the url_alias table".
As I noticed, the code stops "Boost" caching the pages that contain CCK redirection field (I didn't find any cache files for the nodes that contain CCK redirection field), but I think that the Boost crawler checks that nodes and, of course, through CCK redirection field hits the external links. I think the cause is using "Crawl All URL's in the url_alias table" and the solution is to prevent for crawling that specific nodes.
Is there any solution to use for crawling other list of nodes than url_alias table ?
Thanks again for all your answers.
Comment #9
mikeytown2 commentedIf the node has been cached before, it will be crawled again. You can also enable a setting that puts the node into the boost_cache table on node creation