Language

Български

Who's Online

В момента има 2 посетителя в сайта

Statistics

Членове : 2
Съдържание : 134
Връзки : 25
Брой прегледи на съдържанието : 152018

Joomla Newsflash

Joomla! makes it easy to launch a Web site of any kind. Whether you want a brochure site or you are building a large online community, Joomla! allows you to deploy a new site in minutes and add extra functionality as you need it. The hundreds of available Extensions will help to expand your site and allow you to deliver new services that extend your reach into the Internet.

Home Joomla! Joomla! FAQs Ограничаване на достъпа на .xml файлове и функцията ?tp=1
Ограничаване на достъпа на .xml файлове и функцията ?tp=1 Печат Е-мейл
Написано от myOltrans    Понеделник, 11 Януари 2010 18:58    Последно променен на Понеделник, 11 Януари 2010 19:13

Версия 1.5.15 включва допълнителна поция за сигурност в .htaccess файла за ограничаване достъпа на .xml файловете.Новият код е:

#Deny access to extension xml files (uncomment out to activate)
#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>
#End of deny access to extension xml files

Това ви позволява да използвате вашия .htaccess файл. Този файл се намира в основната директория на Джумла!, там където се намира и файла configuration.php.

Отворете файла .htaccess и намерете горния код. След това махнете коментарите във вътрешните редове, така че да изглежда по следния начин:

## Deny access to extension xml files (uncomment out to activate)
<Files ~ "\.xml$">
Order allow,deny
Deny from all
Satisfy all
</Files>
## End of deny access to extension xml files

За да разрешите определен xml файл, например този за Гугъл, добавете кода:

## entry to allow spezial xml (i.e. sitemap.xml in the rootfolder for google)
<Files  "sitemap.xml">
Order allow,deny
allow from all
</Files>

Когато използвате функцията ?tp=1 след адреса на вашия уебсайт, можете да видите какви позиции са включени в шаблона http://www.yourdomain.com/index.php?tp=1

Можете да забраните използването на тази функция като добавите следния код във вашия .htaccess файл:

###Start ?tp=1 prevention###
RewriteCond %{QUERY_STRING} tp=(.*)
RewriteRule ^(.*)$ index.php [F,L]
###End ?tp=1 prevention###

Ресурси: .htaccess Joomla 1.5.15


blog comments powered by Disqus
 

© Copyright 2008-2011 Oltrans. Translation Agency Recourse Portal.
All rights reserved. Various trademarks held by their respective owners.

Oltrans, 152, 6-ti septemvri Bul., Plovdiv 4000 Bulgaria
General Inquiries: (Bulgaria) +359 32 511 272 | skype: Oltrans.org My status