BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 3d, 15h, 44m | CPU: 13% | MEM: 1768MB of 3259MB used
{The community for beta collectors}

Forum rules


Any off topic discussions should go in this forum. Post count is not increased by posting here.
FTP Access status is required to post in this forum. Find out how to get it


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPost subject: Anti-Leeching        Posted: Mon Nov 05, 2007 7:38 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Sep 04, 2006 1:06 pm

Posts
1004

Location
USA
Hey,

I'm using abyss web server (and no, i'm not going to switch to apache), and was wondering how to set up anti-leeching so that if someone doesn't click on the link from my server page at BA, they won't be able to see the page. I can't figure it out in the settings, so can anyone help me?! Thanks

_________________
Old-Computer
BetaArchive VIP | Ex-OSBA Member


Top  Profile
 PostPost subject:        Posted: Mon Nov 05, 2007 8:54 pm 
Reply with quote
Donator
Offline

Joined
Sat Aug 19, 2006 1:25 am

Posts
590

Location
Israel
What you want is a referrer check. In PHP, the $_SERVER['HTTP_REFERER'] property will give you the HTTP referrer URL. For example:
Code:
$ref = $_SERVER['HTTP_REFERER']; // will put the referrer in $ref
echo "Referrer: " . $ref . "<br>";

if ( stristr($ref,"google.com") == FALSE ) // will check if the referrer string contains "google.com"
   echo "Referrer is not Google.";
else
   echo "Referrer is Google.";


I don't know Abyss well enough to do it in its settings, Andy should be able to help you if you want to do it that way.


Top  Profile
 PostPost subject:        Posted: Mon Nov 05, 2007 9:07 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Mon Sep 04, 2006 1:06 pm

Posts
1004

Location
USA
Thanks, but I was looking at how to do it in the Abyss settings. That way, I don't have to worry about someone giving away the direct file link, and figuring out a way to protect that.

_________________
Old-Computer
BetaArchive VIP | Ex-OSBA Member


Top  Profile
 PostPost subject:        Posted: Tue Nov 06, 2007 4:15 am 
Reply with quote
Administrator
User avatar
Offline

Joined
Fri Aug 18, 2006 11:47 am

Posts
12384

Location
Merseyside, United Kingdom

Favourite OS
Microsoft Windows 7 Ultimate x64
In the anti leeching settings you need to put the folders in the anti leeching scope that you want to disallow linking from. Then in the redirect leechers to url put either a small anti leech image or a html page, etc.

I have to use allow links from for betaarchive.com and other sites I allow to hotlink.

_________________
Image

BetaArchive Discord: https://discord.gg/epK3r6A


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 




Who is online

Users browsing this forum: Majestic-12 [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS