PDA

Zobacz pełną wersję : robots



dylas
10-12-2006, 19:51
Witam wszystkich
Z joomlą zapoznajmę sie od niedawna i do tej pory radziłem sobie metodą prob i błędow
korzystając z informacji zawartych w plikach pomocy i na forum ala teraz niemam koncepcji.
Google przy probie analizy pliku robots.txt zwraca komunikat
popraw plik robots.txt
"Plik robots.txt zawiera więcej znakow niŜ 5000. To narzędzie moŜe analizować pliki robots.txt o
długości nie przekraczającej 5000 znakow"
i analiwę tego pliku

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
"http://www.w3.org/TR/REC-html40/frameset.dtd">
<html>
<head>
<title>otomoto24.pl</title>
<script type="text/javascript">
//<!--
var display = false;
var cookieEnabled = true;
function __addFlash(src, width, height, bgcolor, wmode){
if (!bgcolor) bgcolor='';
var _f='';
_f = '<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ';
_f += 'WIDTH="'+width+'" HEIGHT="'+height+'">';
_f += '<PARAM NAME="movie" VALUE="'+src+'"><PARAM NAME="quality" VALUE="high">';
_f += '<PARAM NAME="bgcolor" VALUE="'+bgcolor+'">';
if(wmode!=null) _f += '<PARAM NAME="wmode" VALUE="'+wmode+'">';
_f +='<PARAM NAME="scale" VALUE="noscale">';
_f += '<EMBED scale="noscale" src="'+src+'" WIDTH="'+width+'" HEIGHT="'+height+'" quality="high" ';
if (wmode) _f += 'wmode="'+wmode+'" ';
if (bgcolor) _f += 'bgcolor="'+bgcolor+'" ' ;
_f += 'TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash"><\/EMBED>';
_f += '<\/OBJECT>';
return _f;
}
function __addLayer(width, height, left, top, visibility,position, zIndex, name,text,background){
if(!name) name='_mainWindow';
if (zIndex==null) zIndex=101;
if (!visibility) visibility='visible';
var _l='';
_l = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ';
_l += '"<A
href="http://www.w3.org/TR/html4/loose.dtd"><html><title>Reklama">http://www.w3.org/TR/html4/loose.dtd"><html><title>Reklama
- nazwa.pl<\/title><\/head><body>';
_l += '<div ';
_l += 'id="'+name+'" name="'+name+'" style="';
_l += 'position: '+position+'; ';
_l += 'background: '+background+'; ';
_l += 'width: '+width+'px; height: '+height+'px; ';
if (top!=null) _l += 'top: '+top+'px; '
if (left!=null) _l += 'left: '+left+'px; ';
_l += 'z-index: '+zIndex+'; ';
_l += '">';
if(text!=null)_l +=text;
_l += '<\/div><\/body><\/html>';
return _l;
}
function __BanerWindow(src,width,height){
if(src=='')return 0;
this.banerWindow=null;
this.banerWindow=null;
this.banerWidth=width;
this.banerHeight=height;
var _mf = __addFlash(src,width,height,'white');
this.baner= __addLayer(width, height, 0, 0, 'visible','absolute',96, 'dic12323re',_mf,'transparent');
this.initWindow = function(){
var left=(screen.width/2)-(this.banerWidth/2);
var top =(screen.height/3)- this.banerHeight;
if(top<=0)top=40;

Strona 1 z 3
http://forum.joomla.pl/forum/showthread.php?t=6017 2006-12-10

if(top<=0)top=40;
var conf="menubar=no, toolbar=no, location=no, scrollbars=no, resizable=no,
status=no,width="+this.banerWidth+",height="+this.banerHeight+",left="+left+",top="+top;
this.banerWindow=window.open("","_blank",conf);
if (typeof this.banerWindow.blur !="undefined" ) {
this.banerWindow.blur()
}
}
this.showWindow = function (){
this.banerWindow.document.write(this.baner);
this.banerWindow.document.close();
}
this.initWindow();
this.showWindow();
}
function setCookie() {
var date = new Date();
date.setTime(date.getTime()+(4*60*60*1000));
var curCookie = "visit=1; expires=" + date.toGMTString() + "; path=/";
document.cookie = curCookie;
}
function readCookie() {
if (cookieEnabled == false)
return null;
var nameEQ = "visit=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function correctDate() {
var today = new Date();
var todayString = today.getFullYear()+'.';
dm = new String(today.getMonth()+1);
if (dm.length == 1) dm = '0' + dm;
dt = new String(today.getDate());
if (dt.length == 1) dt = '0' + dt;
todayString = todayString + dm + '.' + dt;
var dates = new Array();
dates[0] = "2006.09.10-2006.12.31";
dates[1] = "2006.10.20";
dates[2] = "2006.08.23";
for (var i=0;i<dates.length;i++){
if (dates[i] == todayString)
return false;
}
var temp;
for (var i=0;i<dates.length;i++) {
temp = dates[i].split('-');
timeA = new Date(temp[0]);
timeB = new Date(temp[1]);
if (timeA <= today && today <= timeB)
return false;
}
return true;
}
if (readCookie()!='1' && correctDate() && display) {
new __BanerWindow('http://www.ad.netart.pl/URL/actual2.swf',750,550);
setCookie();
}
//-->

Strona 2 z 3
http://forum.joomla.pl/forum/showthread.php?t=6017 2006-12-10

//-->
</script>
</head>
<frameset>
<frame name="strona" src="http://www.otomoto24.nazwa.pl/" frameborder="0" />
<noframes>
<body>
<div>
Twoja przegl�darka nie obs�uguje ramek.<br>
Przejd� na adres: <a href="<A
href="http://www.otomoto24.nazwa.pl/">http://www.otomoto24.nazwa.pl/</a">http://www.otomoto24.nazwa.pl/">http://www.otomoto24.<hr>
<h6>www.nazwa.pl</h6>
</div>
</body>
</noframes>
</frameset>
</html>
co z tym zrobić ?
z gory dziękuję zapodpowiedź

Strona 3 z 3
http://forum.joomla.pl/forum/showthread.php?t=6017 2006-12-10

stone
10-12-2006, 22:48
a co masz w pliku robots.txt?

dylas
10-12-2006, 23:00
User-agent: *
Disallow: /administrator/
Disallow: /cache/
Disallow: /components/
Disallow: /editor/
Disallow: /help/
Disallow: /images/
Disallow: /includes/
Disallow: /language/
Disallow: /mambots/
Disallow: /media/
Disallow: /modules/
Disallow: /templates/

stone
10-12-2006, 23:14
Dziwne zachowanie, plik ma w porządku. Poszukaj na googlu jakiejs informacji bo wydaje mi się że to problem ogólniejszy niż samej Joomli

dylas
10-12-2006, 23:41
dzięki sprubuje unich coś poczytać

hazael
11-01-2007, 02:57
To raczej z winy zbyt duzej ilosci dodanych robotow do zablokowania. Zbyt duza tresc robots.txt utrudnia robotom szybką analize blokowanych miejsc - najprawdopodobniej roboty zaczynają ignorowac ten plik.

najlepiej blokowac niechciane robaki za pomoca pliku htaccess


SetEnvIfNoCase User-Agent "^NAZWA_ROBOTA*" block_bad_bots
Deny from env=block_bad_bots