Skip to content

Commit f0f4ad6

Browse files
author
danh
committed
Altered robots file to deny access by default, except for spider.php so this doesn't break Google Appliances.
git-svn-id: http://svn.resourcespace.org/svn/resourcespace@546 c08608d7-6e46-0410-86ca-f2a6f1370df5
1 parent a218efc commit f0f4ad6

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

include/authenticate.php

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
daily_stat("User session",$userref);
9898
}
9999
}
100-
101100
}
102101
}
103102
else {$valid=false;}

pages/spider.php

+2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@
4545
if ($ref!="")
4646
{
4747
# Resource view
48+
$userpermissions[]="f*"; # Set access to all fields.
4849
$resource=get_resource_data($ref);$resourcedata=get_resource_field_data($ref);
50+
4951
if ($resource["has_image"]==1)
5052
{
5153
$thumbnail=get_resource_path($ref,false,"col",false,$resource["preview_extension"]);

robots.txt

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
#
2+
# Sample robots.txt file - ensures that a Google Appliance can still access the spider page (if configured)
3+
# and assumes an installation in the site root. For sites in a subfolder you must move the robots.txt file
4+
# to the site root and alter the paths accordingly.
5+
#
16
User-agent: *
27
Crawl-delay: 10
8+
Allow: /pages/spider.php
9+
Disallow: /

0 commit comments

Comments
 (0)