"Access Denied" page to return 403 rather than 200?.

Author Message

Tony Wood

Wednesday 15 October 2008 6:02:15 am

Hi,

Can "Access Denied" Kernel (1) Responses return 403 rather than 200 please.

When you link to pages in eZ http://ez.no/partners/knowledge_centre and you do not have access rights the Kernel returns a 200.

Could we please have the option in an ini to return a 403 as Forbidden is closer to the actual response than the "hey all ok" 200

This will help with SEO as these pages will not appear in searches.

Thanks

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

michiel n.

Friday 07 November 2008 2:10:05 am

Very valid remark. I would like to see that too, just as it works already with the 404.

Certified eZ developer looking for projects.
michieln at gmail dot com
http://ez.no/certification/verify/225305

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 04:12:44
Script start
Timing: Jan 18 2025 04:12:44
Module start 'layout'
Timing: Jan 18 2025 04:12:44
Module start 'content'
Timing: Jan 18 2025 04:12:44
Module end 'content'
Timing: Jan 18 2025 04:12:44
Script end

Main resources:

Total runtime0.5749 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 590.9922152.6406
Module start 'layout' 0.00710.0033 743.632839.4922
Module start 'content' 0.01040.5630 783.1250531.0156
Module end 'content' 0.57340.0014 1,314.14068.1250
Script end 0.5748  1,322.2656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5721160.0002
Check MTime0.00130.2277160.0001
Mysql Total
Database connection0.00100.169810.0010
Mysqli_queries0.528891.9879540.0098
Looping result0.00050.0868520.0000
Template Total0.542694.420.2713
Template load0.00190.323920.0009
Template processing0.540894.068320.2704
Template load and register function0.00010.016210.0001
states
state_id_array0.00050.081410.0005
state_identifier_array0.00070.120420.0003
Override
Cache load0.00150.2607150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.102420.0003
Fetch class attribute name0.00100.170840.0002
XML
Image XML parsing0.00100.175720.0005
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00090.1488220.0000
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs