Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™
Author Message
digibeet
Regular
Regular


Joined: Jul 08, 2004
Posts: 96
Location: Amsterdam, the Netherlands

PostPosted: Sat Aug 07, 2004 8:34 am Reply with quote

Hi all,

Great work with Sentinel 2.0, but I seem to have a problem. Confused

Harvesting of downloads still going on, the files are directly requested without any problem, no fetching neccesary or blocking by Sentinel. Embarassed


How can I change this to be protected by Sentinel and that Fecht-it needs always to be used. Crying or Very sad

Thanks to all,

Fred

_________________
"Grasp the subject, the words will follow."
Cato the Elder (234 BC - 149 BC)
Roman orator & politician. 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Aug 07, 2004 9:32 am Reply with quote

Directly downloading is not the same as harvesting. Sentinel will only stop harvesting IF the Agent that is doing the harvesting is in the Harvester's list. Fetch-it cannot stop direct access either. To do what you are requesting takes other means, like adding code to your .htacess file, assuming you are on *nix, that disallows access. This is not tested, but should give you a start
Code:
RewriteEngine on

RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://(.*)fred-dresken.nl\.([com|net]+)/.*$ [NC]
RewriteRule .*\.([mpg|mpeg|zip|tar|exe|avi|mov|gif|jpe?g]+)$ - [NC,F]

That will require all downloads (and other often stolen extensions) to only be accessed from your site. In other words they can still directly d/l if they know the name, but they will have to be on your site.


Last edited by Raven on Sat Aug 07, 2004 10:24 am; edited 2 times in total 
View user's profile Send private message
digibeet
PostPosted: Sat Aug 07, 2004 10:03 am Reply with quote

Thanks Raven,

Sorry that i posted it as a bug.. Embarassed

Is this the .htaccess in the nuke root or in the folder where the files are or both..

There is a Nuke site in the netherlands called mozeskriebel.nl and every new download I ad to my folders are within 5 min. or so also active on there site, I can see a crawler from them in my IP-Tracking but I don't know how they found the original file names so that they can access them directly.. and they do that on many sites, weird. Bang Head

But I will start with your answer.

Thanks again,

Fred Mr. Green
 
Raven
PostPosted: Sat Aug 07, 2004 10:05 am Reply with quote

Place that in your downloads folder.
 
digibeet
PostPosted: Sat Aug 07, 2004 10:17 am Reply with quote

Tested it,

After fetching the file this is the result, and I have CGI access for this directory.

The server encountered an internal error or misconfiguration and was unable to complete your request. Your administrator may not have enabled CGI access for this directory.

Any idea?

Thanks anyway,

fred Mr. Green
 
Raven
PostPosted: Sat Aug 07, 2004 10:25 am Reply with quote

Try replacing the third line with this
Code:
RewriteCond %{HTTP_REFERER} !^http://(.*)fred-dresken.nl\.([com|net]+)/.*$ [NC]


I corrected the post above.
 
digibeet
PostPosted: Sat Aug 07, 2004 10:32 am Reply with quote

Same result as before.. Crying or Very sad

thanks
 
Raven
PostPosted: Sat Aug 07, 2004 10:57 am Reply with quote

Then it would appear that your host may be restricting certain .htaccess directives. Check with them to see if they can explain. This assumes that mod_rewrite is installed. Is it? If not, that could also be the problem.
 
dobbelina
Hangin' Around


Joined: Jul 21, 2004
Posts: 47

PostPosted: Tue Aug 10, 2004 12:26 am Reply with quote

Quote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://(.*)fred-dresken.nl\.([com|net]+)/.*$ [NC]
RewriteRule .*\.([mpg|mpeg|zip|tar|exe|avi|mov|gif|jpe?g]+)$ - [NC,F]

Can i use this as an antileech method to protect my downloads from leeching?
And if so should i change that "fred-dresken.nl" to my sites url?
(i know i have to make an htaccess file in the downloads folder)
Dobbelina
Smile
 
View user's profile Send private message
digibeet
PostPosted: Tue Aug 10, 2004 7:37 am Reply with quote

Hi Dobbelina,

It is a tricky method if you don't have CGI access as Raven told in a early post.

You probably can use Fetch-IT first and if that don't help then you can try this feature, but that only works when you have CGI access to that folder. Inform about that with your hosting provider.

Fetch-It - Only registered users can see links on this board! Get registered or login!

Greets,

Fred Mr. Green
 
Raven
PostPosted: Tue Aug 10, 2004 9:43 am Reply with quote

dobbelina wrote:
Quote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://(.*)fred-dresken.nl\.([com|net]+)/.*$ [NC]
RewriteRule .*\.([mpg|mpeg|zip|tar|exe|avi|mov|gif|jpe?g]+)$ - [NC,F]

Can i use this as an antileech method to protect my downloads from leeching?
And if so should i change that "fred-dresken.nl" to my sites url?
(i know i have to make an htaccess file in the downloads folder)
Dobbelina
Smile
That should work. I don't thing CGI or Apache module should matter with .htaccess.
 
dobbelina
PostPosted: Wed Aug 11, 2004 9:06 pm Reply with quote

Ok,many thanks i'll give it a go Very Happy
Dobbelina
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™

View next topic
View previous topic
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
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©