Language

Български

Who's Online

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

Statistics

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

Joomla Newsflash

Yesterday all servers in the U.S. went out on strike in a bid to get more RAM and better CPUs. A spokes person said that the need for better RAM was due to some fool increasing the front-side bus speed. In future, buses will be told to slow down in residential motherboards.
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