How to ban content/view/full in the URL?

Author Message

Nebojsa Eric

Friday 02 June 2006 3:56:05 am

I want to ban user to visit links like http://www.mysite.com/content/view/full/55. By doing this someone can acctualy see content. What is the best way to do that?

On the other side, registration info email, which user gets to confirm his account, contains link like this http://www.mysite.com/content/view/full/55.

Coulibaly Ibrahim

Monday 05 June 2006 12:54:34 am

Hi;
you can take a look at this page:
http://ez.no/products/ez_publish/documentation/building_an_ez_publish_site/the_news_page/news_archive

see this chapter: <b>Creating an URL alias for the News archive</b>

i think, it can help you. ;)

Marc Boon

Wednesday 07 June 2006 2:41:59 pm

You can block urls in a .htaccess file in your site root (when using the Apache web server):

<FilesMatch "^content/view/full">
  Order Allow,Deny
</FilesMatch>

See also:
http://httpd.apache.org/docs/1.3/mod/core.html#filesmatch
http://httpd.apache.org/docs/1.3/mod/mod_access.html#order

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 31 2025 00:41:37
Script start
Timing: Jan 31 2025 00:41:37
Module start 'layout'
Timing: Jan 31 2025 00:41:37
Module start 'content'
Timing: Jan 31 2025 00:41:37
Module end 'content'
Timing: Jan 31 2025 00:41:37
Script end

Main resources:

Total runtime0.0233 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.2266151.2109
Module start 'layout' 0.00610.0033 739.4375220.6875
Module start 'content' 0.00940.0125 960.1250997.9297
Module end 'content' 0.02190.0014 1,958.054729.9922
Script end 0.0233  1,988.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.0704140.0002
Check MTime0.00114.5646140.0001
Mysql Total
Database connection0.00093.737110.0009
Mysqli_queries0.002711.422830.0009
Looping result0.00000.055210.0000
Template Total0.00114.510.0011
Template load0.00083.577710.0008
Template processing0.00020.912310.0002
Override
Cache load0.00062.413110.0006
General
dbfile0.00187.520280.0002
String conversion0.00000.029640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs