summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/dokuwiki.php2
-rw-r--r--inc/format.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/conf/dokuwiki.php b/conf/dokuwiki.php
index c82a7f6f3..2204e7c05 100644
--- a/conf/dokuwiki.php
+++ b/conf/dokuwiki.php
@@ -39,6 +39,8 @@ $conf['deaccent'] = 1; //convert accented chars to unaccented
/* Antispam Features */
$conf['usewordblock']= 1; //block spam based on words? 0|1
+$conf['indexdelay'] = 60*60*24*5; //allow indexing after this time (seconds) default is 5 days
+$conf['relnofollow'] = 1; //use rel="nofollow" for external links?
$conf['mailguard'] = 'hex'; //obfuscate email addresses against spam harvesters?
//valid entries are:
// 'visible' - replace @ with [at], . with [dot] and - with [dash]
diff --git a/inc/format.php b/inc/format.php
index 7c4028930..9c418e9ad 100644
--- a/inc/format.php
+++ b/inc/format.php
@@ -148,6 +148,7 @@ function format_link_externalurl($link){
$link['url'] = $link['url']; //keep it
$link['title'] = htmlspecialchars($link['url']);
if(!$link['name']) $link['name'] = htmlspecialchars($link['url']);
+ if($conf['relnofollow']) $link['more'] .= ' rel="nofollow"';
//thats it :-)
return $link;
}