DaTorrents Forums  

Go Back   DaTorrents Forums > DeltaAnime Torrents > Problems/Errors

Reply
 
LinkBack Thread Tools Display Modes
Old 08-29-2009, 07:02 PM   #1 (permalink)
lonely soul
 
Soran's Avatar
 
Join Date: Dec 2005
Location: The Age of Evening Calm
Posts: 38
Soran is on a distinguished road
Points: 4,158.38
Bank: 3,251.36
Total Points: 7,409.74
Please allow empty HTTP_REFERER (viewing images in the Gallery)

Please add
RewriteCond %{HTTP_REFERER} !^$
or
RewriteCond %{HTTP_REFERER} .
to your .htaccess file.


This is what almost all other sites do. I can tell it because there're very few sites where I can't see images.

If it's only a temporary configuration or an error you were going to fix anyway, please ignore the rest.


It's fair and reasonable to fight these who hotlink images hosted by Datorrents. But blocking access with not empty wrong referrer should be enough. Just think about what exactly you try to prevent:
A) A person who uses images hosted here to link on his blog site, in his public gallery, in his signature, etc.
B) A "cult", a sworn group, that uses images hosted here for whatever they want to do (frankly I've no idea what it can be).
C) A group that isn't even interested in the images, but just tries to damage DaT by using its bandwidth or making other people use its bandwidth.

Now, since the most people do have a valid referrer, you can nail the (A) case without blocking empty referrer. The most people would see the "sorry/hello thief" images and laugh at this silly person; he/she would just disappear in obscurity.

You can do very little about the cases (B) and (C) because it's very easy to fake the referrer. There's more than one Firefox addon that will let you do exactly this in matter of few seconds. Unless you're stuck with some anonymity or corporate service that kills your referrer (whether it's valid or faked) before it reaches its final destination.

Considering the recent witch hunts on fans of deviant art in many countries around the world, there'll be more and more people who have no choice but to use anonymous proxies and similar services. Unfortunately some of these services remove the header information (to protect you) whether you like it or not. Datorrents proudly allows even anonymous (not logged in) visitors to view all gallery sections. I hope you can allow people who are stuck with empty referrer (due privacy services "bundles", corporate/college policy, etc.) to view images the gallery too.

An example empty referrer-friendly hotlink block for .htaccess file:
Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?datorrents\.com/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]

Just in case someone wants to see what the Gallery looks like with empty referrer atm:

__________________

holie.net

Last edited by Soran; 08-29-2009 at 07:10 PM.
Soran is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-29-2009, 11:49 PM   #2 (permalink)
lolikon
 
ichigo's Avatar
 
Join Date: Apr 2005
Location: Ohio, USA
Posts: 409
Images: 24548
ichigo is on a distinguished road
Points: 4,275,294.55
Bank: 14,538,717.41
Total Points: 18,814,011.96
Agreed, to a point.

Unfortunately, because of the way the sites are generated, with all static content being served by nginx, and not apache, modifying .htaccess would do absolutely nothing, because the structure is completely irrelevant in the point of handing off static content and a internal proxy to nginx. Right now, all pages are proxied through nginx, and all static content is delivered from a second web server (running nginx.) ALL requests handed off to apache for php functionality, and such, have the proper referrer in place automatically. Yet anything linking to the static content directly on img01 (the gallery's httpd), requires said referrer to be valid, AND in existence. (hence blank referrers are treated as invalid)

We're working on solutions to try to head things off at the pass though.

Mainly tweaking nginx's performance so that it stops completely ramping up apache. (the random downtimes are because of this), when there is a heavy load on the proxy, it spawns mass amounts of apache workers in an effort to keep up with the load (be it artificial or actual production work.) Each time it's being ramped up, the connection settings are being tweaked in a more conservative manner, rather than start small and work big, it's just big to start with.

As for the blank referrer, its actually a conditional at this point, if its not a request originating from any of the dat allowed domains, its simply not handled, regardless of origin or anything. I can definitely understand the frustration, and keep in mind, our stability and getting things to a working condition is the primary concern right now.
__________________

Last edited by ichigo; 08-31-2009 at 11:46 PM.
ichigo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 06:41 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40