PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: DJ RRebel on 16 February, 2004, 00:03:43

Title: Profiled Download Blocking / Filtering
Post by: DJ RRebel on 16 February, 2004, 00:03:43
Heya guys ... I need to limit downloads based on a user's profile.

I haven't installed PtokaX yet, but I'm looking at also installing the RoboCob script, as it seems to be the most popular in terms of covering all the general essentials.  On top of the general stuff (like checking for bad shares, etc etc), I need the following:


Unregistered/guest:
- Can only download *.mp3 files (or others I choose).
- Can only download files with 'abcxyz' within the file name. (where abcxyz is replaed with my site's name).


Registered:
- Can only download *.mp3 files (or others I choose).


VIP:
- Can download any file type.

-------------------------------------------

If you're wondering why I need this, the reason because my site 'officially' shares about 20 gigs of files, and I want registered users to have a minimum amount of those files before I register them.  So of course, I need to at least give unregistered guests access to those files so they can reach my minimums.  Thankfully, I had the foresight to add [www abcxyz com].mp3 to the end of all those files (where abcxyz is replaced by my site's name).


Also, if there's a general script that might be a bit more flexible in serving my needs other than RoboCop, please let me know !!! :)


Thanks to all who help !!! :)
Title:
Post by: kepp on 16 February, 2004, 12:23:34
It's not possible!! (At least i don't think so)
Title:
Post by: DJ RRebel on 16 February, 2004, 18:39:06
When you say impossible, are you just talking about the filtering out and only allowing downloads of files with 'abcxyz', or are you also talking about the only '*.mp3' files as well?


Are you sure it's not possible?  Plop mentioned in this thread that it was posible, it's just that I'd have to modify existing scripts.

http://board.univ-angers.fr/thread.php?threadid=1321&boardid=9

I've searched for ages here looking for similar scripts, except all my searches either resulted with 2 or 3 topics that didn't help, or instead listed over a hundred topics which was rather hard to find what I was looking for, or even a script on which to base changes on! :( (which is why I'm asking for help here)

Anyhow, anybody think this is actually posible? or can anybody else confirm that this is imposible?  I would think it would just be a matter of applying a little verifcation if a file name contains a certain string or not (such as abcxyz in my example above).

Anyhow ... feedback from anyone else would be appreciated, I'd like to have a bit more feedback before giving up on this idea completely!

Thanks again !!!  :)
Title:
Post by: kepp on 16 February, 2004, 18:52:12
i mean both! sure, there is a script call Illegalist i think, that can filter out unwanted stuff, BUT, you can't prevent users from downloading movies and other things, the only way to prevent that would be if you only allowed mp3's, but now i see the dilema in that,

that was not your request, and therefore, Yes, Both are imposible... (I may be wrong but i doubt it)
Title:
Post by: DJ RRebel on 16 February, 2004, 20:13:48
Well ... only allowing mp3's actually is one of the two things I need done.

Only allow mp3's for both unregistered and registered users.  VIP's & OPs would be allowed to download anything.


The second thing, is applying an extra download filter on unregistered users so that not only can they only download just mp3 files.  But also only mp3 files with a particular text string within the file name (my site's name in this case).



Or are you trying to tell me the only way to block non-mp3 files, is to block people from actually including them within their shares?  Is there no way to create a script that actually applies a filter (based on files extention or file name string search) on what people can download?

Or is the problem that download requests are direct from peer to peer and don't go through the hub in any way, and therefore it would be imposible to apply a filter on actual download requests?


Anyhow ... thanks again !!! :)
Title:
Post by: kepp on 16 February, 2004, 20:25:43
Well, i allready see the issue, You don't want some Profiles to be able to download anything else but mp3's (Can be done), and then you want Ops to be able to download anything.
(Can't be done) you see, you can't controll what other users are downloading.

you can allow only mp3's into your hub, (No problems there)

But then OP's won't be able to download anything but mp3's either..
Title:
Post by: kepp on 16 February, 2004, 20:26:58
QuoteOriginally posted by DJ RRebel

Or is the problem that download requests are direct from peer to peer and don't go through the hub in any way, and therefore it would be imposible to apply a filter on actual download requests?

Yea, it might aswell be that! CLient > Client
Title:
Post by: DJ RRebel on 16 February, 2004, 20:33:01
ok ... I think I understand what you're trying to say.

How about search results ???  Is it posible to apply a filter on search results, or is that also something that totally by-passes the hub ?  :(
Title:
Post by: kepp on 16 February, 2004, 20:37:14
That i don't know, maybe so, (Im affraid to answer you on that)
Title:
Post by: DJ RRebel on 17 February, 2004, 11:52:12
OK ... thanks Kepp !!! :)

Anyone know forsure about a search blocking/filter, or the originally discussed download block/filter?

Someone told me it should be a problem, and that I need to start in the following area:

Quote... it's a matter of string capture. and doing that for each profile yups then you will have a start

Again thanks to all who help out ... :)

I'm starting my vacation today, so hopefully I'll be able to get started and have my hub running before the end of my vacation !!! :)