PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > How Do I Exclude a REFERRER From Hitting my Site?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

How Do I Exclude a REFERRER From Hitting my Site?

Réponse
 
LinkBack Outils de la discussion
Vieux 15/02/2007, 05h35   #1
maria
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How Do I Exclude a REFERRER From Hitting my Site?

I would like to exclude the REFERRER

67.15.114.78/statsdelivered2/

from hitting my site. How do I do it?
This is a maliciously ridiculous site that shows another
ad every time you reload it. However, our pages receive all
kinds of hits by clicking into the above pages.
We cannot see what these malicious people do with our pages,
because, as I said before, we see a new page from there every time we
try to get there.
Is it possible to have something in the .htaccess file that precludes
people from getting to our pages after clicking a link into the above
address?
Thank you very much.

maria

  Réponse avec citation
Vieux 15/02/2007, 09h52   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How Do I Exclude a REFERRER From Hitting my Site?

On 15 Feb, 05:35, maria <maria@maria_de_napoli.com> wrote:
> I would like to exclude the REFERRER
>
> 67.15.114.78/statsdelivered2/
>
> from hitting my site. How do I do it?
> This is a maliciously ridiculous site that shows another
> ad every time you reload it. However, our pages receive all
> kinds of hits by clicking into the above pages.
> We cannot see what these malicious people do with our pages,
> because, as I said before, we see a new page from there every time we
> try to get there.
> Is it possible to have something in the .htaccess file that precludes
> people from getting to our pages after clicking a link into the above
> address?
> Thank you very much.
>
> maria


just disable javascript using noscript, and you can. In fact it shows
frames with others sites inside, as well as content from about 30
domains.
Do you receive requests for html content. If you do, why not embed
some code in the head of this html page which redirects the whole damn
page away to somewhere like google.
the code would be something like this:
(you have to allow domains and servers which you _do_ want your page
to be framed in, like google analytics, and other websites that you
need stats from etc.. all others than try to frame your html will then
be directed.)

<script type="text/javascript">
function in_array(needle,arrHaystack)
{
var hl = arrHaystack.length;
for(i=0;i<hl;i++)
{
if(needle==arrHaystack[i]) return true;
}
return false;
}
try
{
var strurl = top.location.href;
var strhost = strurl.substring(7,strurl.indexOf('/',10));
var arrallowedcachinghosts = new
Array('www.yourdomain.com','anothefriendlyserver.c om');
if(!in_array(strhost,arrallowedcachinghosts))
{
try
{
window.location.replace('http://www.google.com/);
}catch(error){}
}
}catch(e){}
</script>

encoding this javascript, and saving in your html docs will remove
framing for all sites.

dont rely on the referer header to you 100%, it is set (or maybe
not) by the users browser.

There is an example in the manual to stop hotlinking.
Not to mention here:
http://www.tiglo.co.uk
see this page - where a "goaway" image is found and served instead of
your original
/technology/internet/Part-1-Preventing-Image-Hotlinking-Web-Scrapers-
And-Referral-Spam.html

found from googling "apache 2.2 docs hot-linking"

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h57.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09379 seconds with 10 queries