The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
What is the conditional code to do this
I want to prevent my google adsense ads from being displayed to a specific domain.
The domain is http://5centminimum.com/members/timerPTC.php Can someone help me with the correct conditional statement to prevent adsense ads from being displayed to the above listed url? Thank you. |
#2
|
|||
|
|||
5CENTMINIMUM Please log into your account and try again.
That's all I see.. o_O; |
#3
|
|||
|
|||
Oh wait. sorry.. I did not explain myself properly.
Ok, some person submitted my board to that site without my permission. But I don't want my Google adsense ads to be displayed on that url when my site is viewed. I think that site is a banner exchange, I'm not sure. But what I want to do is prevent my Google Adsense ads from being displayed on that domain. Isn't there a code for this involving .htaccess and a rewrite of some kind? I want those who use that domain to look at my site, but I do not want them to look at my Google Adsense ads. But I only want that domain to not "see" my Google ads. |
#4
|
||||
|
||||
So basically preventing hotlinking?
|
#5
|
|||
|
|||
Well, if it can prevent my Google Adsense ads from showing up on that domain when my board is viewed on that domain, then I guess it does prevent hot linking.
Although I'm not quite sure what hotlinking is... Ok everyone, this is what I have so far, please correct me if I am wrong. PHP Code:
PHP Code:
PHP Code:
PHP Code:
Well, I have an idea as to how to block this type of cheap traffic, and it involves modifying the .htaccess file. sweet! |
#6
|
|||
|
|||
Yes, this is similar to preventing "hotlinking." I found out what that was...lol. Thanks for pointing me in the right direction Redlinemotorsports.
Here is what I was after This code is for multiple referrer that you want to block Code:
RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR] RewriteCond %{HTTP_REFERER} anotherbadsite\.com RewriteRule .* - [F] This code here is for one referrer to block Code:
RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} badsite\.com [NC] RewriteRule .* - [F] RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} badsite\.com [NC] RewriteRule .* - [F] This code is useful to block sites that you do not want traffic from, and in my case, this is very helpful as I do not need traffic from a few sites. I just tested this using vbulletin.org and it works great! |
#7
|
||||
|
||||
So you got it working now?
|
#8
|
|||
|
|||
Yes, I did.
I tried a plug in, but that wasn't working. This does the trick! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|