Assunto relacionado: bloqueando facebook.com fora do domínio facebook.com
Isso é de default.filter
#################################################################################
#
# shockwave-flash: Kill embedded Shockwave Flash objects.
# Note: Better just block "/.*\.swf$"!
#
#################################################################################
FILTER: shockwave-flash Kill embedded Shockwave Flash objects.
s|<object [^>]*macromedia.*</object>|<!-- Squished Shockwave Object -->|sigU
s|<embed [^>]*(application/x-shockwave-flash\|\.swf).*>(.*</embed>)?|<!-- Squished Shockwave Flash Embed -->|sigU
É assim que você o implementa no arquivo .action
#############################################################################
# Kill embedded Shockwave SWF objects
#############################################################################
{+filter{shockwave-flash}}
.funny-games.biz/
Funciona bem, mas ...
Não estou conseguindo alcançar meu resultado desejado
.filter:
#################################################################################
#
# trace-widget: Get rid of particularly annoying so-called sharing buttons.
#
#################################################################################
FILTER: trace-widget Kill embedded spying buttons.
s|<script [^>]*.twitter.*</script>|<!-- Squished Twitter Object -->|sigU
.action:
#----------------------------------------------------------------------------
# Deny access for Facebook Google and Twitter scripts
#----------------------------------------------------------------------------
{+filter{trace-widget}}
/
O que há de errado com isso?
Estou intrigado sobre como ele pode ser aplicado
quadros e scripts como:
Twitter:
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
Google:g+analytics,etc.
<g:plusoneannotation="inline"></g:plusone>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
Facebook:
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"type="text/javascript"></script>
<a name="fb_share" type="button_count" share_url="..." href="http://www.facebook.com/sharer.php">Share</a>
<iframe frameborder='0' id='facebook_like' scrolling='no' src='https://www.facebook.com/plugins/like.php?href=...'></iframe>
Sua ajuda é muito apreciada.
Atualizar (regras de filtro de trabalho)
Facebook:
s|<a [^>]*(sharer.php).*>(.*</a>)|<!-- Squished Facebook Object -->|sigU
s|<iframe [^>]*(like.php).*>(.*</iframe>)|<!-- Squished Facebook Frame -->|sigU
(seria melhor se os domínios facebook.com e fbcdn.net fossem adicionados a essas regras para que não bloqueie nenhum outro PHP ou JS ou outro conteúdo do site atual)
Google: (nem sempre funciona - cutroni.com)
s|<script [^>]*(plusone.js).*>(.*</script>)|<!-- Squished Google Button -->|sigU
Twitter: (trabalhe com fenopy.eu mas não com as páginas HTTPS do The Pirate Bay link ) (nem sempre funcionando - cutroni.com)
s|<script [^>]*(widgets.js).*>(.*</script>)|<!-- Squished Twitter Object -->|sigU
Sua ajuda, para um código melhor, é muito apreciada.
Editar:
Não f'd - você não vai me encontrar no Facebook fsf.org/fb (Just for fun xD)
s|<a [^>]*(sharer.php).*>(.*</a>)|<a href="http://www.fsf.org/fb"><img src="http://img804.imageshack.us/img804/7822/dislike50.png"alt="Not f'd" /></a>|sigU