![]() |
| Home | Demo | Services | Features | Help | User Forum | Blog | About | |
|
#1
|
|||
|
|||
|
Is there a way to block certain referrer's....someone put a link to my site on another site that I don't want it on....is there a way to block that referrer?
Thanks in advance. Vix |
|
#2
|
||||
|
||||
|
Quote:
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. |
|
#3
|
|||
|
|||
|
Can you point me someplace that tells me how to do it or tell me here o something of the like?
|
|
#4
|
||||
|
||||
|
You can add a ascript like this in the <head> portion of your page if you want all the links to all come in from your site only:
Quote:
Quote:
http://widget.webado.com/test-ip-ban...referrer2.html shows a ban on http://my.statcounter.com as referrer. None of this works for non-javascript enabled browsers or, naturally, if the user just copies the link and uses it directly in the browser. Also the tests may be different for different browsers, this works in IE, not sure about Firefox or others. ---- Later ---- Actually it works in Firefox as well.
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. Last edited by webado; 09-08-2007 at 02:17 AM. |
|
#5
|
|||
|
|||
|
This is another case where mod_rewrite might help. I've been trying -- so far unsuccessfully -- to do something with the referer information.
In the course of investigating that, I came across this tidbit which might provide a partial solution to your problem: Quote:
Last edited by webado; 09-08-2007 at 02:18 AM. |
|
#6
|
||||
|
||||
|
Quote:
__________________
Christina >>Forum Moderator<< Please do not PM me for support. The forum is here for that. Last edited by webado; 09-08-2007 at 02:18 AM. |
|
#7
|
|||
|
|||
|
Quote:
The standard redirects in .htaccess are fairly simple and easy enough to set up -- and not all that dangerous. I use it to set a custom error page and to handle bad search-engine information, taking users from the ancient pages Yahoo used to serve up to something similar and current. It's a far more elegant and a faster solution than using meta redirects or something similar that depends on client-side processng. mod_rewrite, on the other hand, is both tricky and dangerous, but also very powerful. I use it now only to create a canonical host name, converting everything that isn't www.ttca.org into that name. What I'm trying to do now is also redirect several requests that have been coming in from Google's non-US image results. It doesn't work yet, but I think I'm a good enough tester to both notice and overcome the problems that arise. |
|
#9
|
|||
|
|||
|
Quote:
thanks folks. |
|
#10
|
||||
|
||||
|
Quote:
What if you remove the "alert" part from the script, does it work then? Seams to me that it would be much more fun to redirect the visitor from a banned site directly to an other site, without the alert. I can imagine certain kind of sites I would use to make the banned sites owner look really dirty minded
__________________
Statcounter: Forum Rules, Knowledge Base, FAQ Attention! When reporting problems with your counter, please tell what partition yours is on by looking at the code you inserted and you will see: var sc_partition=xx; in the Javascript portion, where "xx" is the number. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|