The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Code to prevent linking from specific site(s)
I know this is possible because I have seen it done on a commercial site.
What I need is code to prevent somebody from linking to my board (any where on my board) from a given site. If somebody clicks on a link to my board from that site, they should get a custom error message that says something along the lines of "We do not welcome traffic from this site" or whatever. Every once in a while, I get "freebied" by some of the major freebie boards. They descend and kill my server and I would like to shoo them off. Amy |
#2
|
||||
|
||||
amy I guess the samples in this page might help to ban sites in .htaccess according to referrer info:
http://diveintomark.org/mobile/002210.html |
#3
|
||||
|
||||
Thanks, Logician. I tested by blocking one of my own sites, and it worked. Hopefully, it will solve my problem
Amy |
#4
|
||||
|
||||
You can just play with the $url that gets defined in global.php.
I disallow guest access to my forums at peek times. But I have made an exception to allow people who visit my board from VB.org to come in at any time, and I display a welcome note at the top of the loaded page. Click on my profile link and check it out. http://www.ls1.com/forums/member.php...fo&userid=4112 |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
Quote:
Look for: Code:
// check to see if server is too busy. this is checked at the end of session.php Code:
if(strstr($url, "http://www.vbulletin.org")) { // Insert code here... } |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Quote:
Ok, I have not tested this but here it goes. change the if() statement from my previous post to this: Code:
$vb_org = 0; if(strstr($url, "http://www.vbulletin.org")) { $vb_org = 1; } Code:
$getperms=getpermissions($thread['forumid'],-1,-1,$forum['parentlist']); Code:
if($vb_org == 1) { $getperms['canview'] = 1; } |
#9
|
||||
|
||||
Thank you zzed.
You gave me the info I need to track what people are searching for at Google that makes them wind up at my site. Instead of checking for vbulletin.org, I check for google. Then, I update a new table with the url. I use webtemplates to display the table to me and let me see what people were searching for. (the search term is in the url) Amy ps, How I did it is here: https://vborg.vbsupport.ru/showthrea...526#post385526 |
#10
|
||||
|
||||
You're very welcome Amy.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|