The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Someone posted my board on a website that is inapropriate for my audience, is there any way I can get it so no one from that website can enter my board? Say, they have my link on their site, I want it to if they click on that link (on their site) that it will block whoever comes from there...is this possible?
Kinda hard to explain, hope you can understand me. Once more just to clear things up... Say someone has my link on their site, and I don't want anyone that clicks on that link, to come to my site, is there any way I can block it so anyone that clicks that link on their site, that they cant enter my board? Kinda like a refferer block? Thanks Patrick |
#2
|
||||
|
||||
Place this in your config.php file, but change vbulletin.org to their domain (without www!):
Code:
if (strstr($HTTP_REFERER, 'vbulletin.org')) { sleep(900); } You can just use exit; instead of the sleep() call, but I find it more fun to just let them see in front of the screen waiting for the page to load. |
#3
|
||||
|
||||
hehe, Yeah to bad you couldn't see them get frustrated...lol
|
#4
|
||||
|
||||
While sleep(); is much more fun it is safer to use exit; as if a few people hit that link at the same time, you could kill the server as rogue apache processes are left lying around for 15 minutes.
|
#5
|
|||
|
|||
Thanks guys...is there any way to block all web page refferers? So if I want to shut my site down for a little bit, no one can link it...to have less traffic?
|
#6
|
||||
|
||||
I had a few naughty sites spamming the referal page that I didnt want my members to go to at the time my vbstats page was full of them.
I sorted it by useing a .htaccess file on the server, you must have mod_rewrite on and put this in the .htaccess file RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://some-lamer-site.com/ RewriteRule /* http://www.another-site.com/ [R,L] Replace some-lamer-site.com with the spammer site name that you want to redirect and change the another-site.com to the site they will go to instead of yours, personaly I redirect them to the pop up from hell page. And so on...for each site you want to block.. RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://some-lamer-site.com/ RewriteRule /* http://www.another-site.com/ [R,L] RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://www.spammer_site.com/ RewriteRule /* http://www.internetlastpage.com/ [R,L] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|