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

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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