我在尝试使用带有包含选项的垃圾邮件网址访问网站时,拒绝访问机器人。
RewriteCond %{QUERY_STRING} option=com_users [NC]
RewriteRule ^(.*)$ index.php [F,L]
但它不起作用。你能解释一下为什么吗?
答案 0 :(得分:0)
删除上面的代码,只在您的var sticky_image = document.getElementById('sticky-footer__image');
var sticky_image_expanded = 'http://www.example.com/image.jpg'
var sticky_image_collapsed = sticky_image.src;
var sticky_container = document.getElementById('sticky-footer__container');
function adjustDivContainerSize() {
var self = $sf.ext.geom().self;
sticky_container.style.width = (self.r - self.l) + 'px';
sticky_container.style.height = (self.b - self.t) + 'px';
}
function expandAd() {
/**
* Expand the ad by calling the SafeFrame API
*/
var config = {
push: false,
t: 250,
l: 0,
r: 0,
b: 0
};
$sf.ext.expand(config);
adjustDivContainerSize();
}
function collapseAd() {
$sf.ext.collapse();
adjustDivContainerSize();
}
adjustDivContainerSize();
/**
* Register the original ad size
*/
$sf.ext.register(300, 70, function(status, data) {
if (status == "expanded") {
//nothing fires
} else if (status == "collapsed") {
//nothing fires
}
});
sticky_container.style.height = '100%';
sticky_container.addEventListener('mouseover', function() {
sticky_image.src = sticky_image_expanded;
expandAd();
})
sticky_container.addEventListener('mouseout', function() {
sticky_image.src = sticky_image_collapsed;
collapseAd();
});
添加以下代码行,它将为您完成:
.htaccess
这将重定向任何请求,包括禁止选项