Anti-NoHashClients
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Anti-NoHashClients

Started by plop, 28 February, 2005, 17:40:46

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

plop

-- Simply script to disallow old DC++ clients without TTH support by PPK

function NewUserConnected(curUser)
	if curUser.bHasTag then
		if curUser.sClient == "DC++" then
			if tonumber(curUser.sClientVersion) < 0.401 then
				curUser:SendData("Please upgrade your client, min version for this hub is 0.401")
				curUser:Disconnect()
				return 1
			end 
		end
	end 
end

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Jorgo

Why not make it 0.4034 as min? In my opinion it's better to have a unicode client, saves a lot of grief in the long run with multi-language files  :D

Pothead

A lot of hubs kick 0.4034.

Shouldn't oDC and NMDC also be blocked, as they don't support TTH ? :)

Dag

oDC
#3
Hi,

if you want to block oDC, try this:
function NewUserConnected(curUser)
		if curUser.bHasTag then
                if curUser.sClient == "oDC" then
				curUser:SendData(" Sorry, last official version of your client is based on DC++ 0.306 and not suport hashing !")
				curUser:SendData(" Please get another and newer client. If you don't know available clients check [URL]http://www.broadbandreports.com/faq/6513[/URL]")
				curUser:SendData("")
				curUser:SendData("$ForceMove "..frmHub:GetRedirectAddress())
				curUser:Disconnect()
				return 1
                         end 
		end
	end

Pothead

#4
This is what i'm using
function NewUserConnected(curUser)
	if curUser.bHasTag then
		if curUser.sClient == "NMDC2" or curUser.sClient == "oDC" or curUser.sClient == "DCPRO" or curUser.sClient == "StrongDC++" or curUser.sClient == "LDC++" then
			curUser:SendData(" " ..curUser.sClient.. " sucks, get DC++ from [URL]www.sourceforge.net[/URL]")
			curUser:SendData("$ForceMove "..frmHub:GetRedirectAddress())
			curUser:Disconnect()
			return 1
		end
	end
end

And have the miniversion one running separately.  I should really combine them ;)

blackwings

lol, guys, if you want to competly block a client, do this =>

1) Go to rules, choose to reject "Users without DC tag"
2) Open "ClientTags.dat" in the main directory where "PtokaX.exe" is.
3) delete those lines with clients that shouldn't be allowed.


bastya_elvtars

4) block dc++ under 0.307
5) block old dcgui

but use script or DCDM. safer.
Everything could have been anything else and it would have just as much meaning.

blackwings

QuoteOriginally posted by bastya_elvtars
4) block dc++ under 0.307
5) block old dcgui

but use script or DCDM. safer.
Why is it safer with script instead of using the "ClientTags.dat" ?
and about your nr 4, I use a script that blocks below 0.401.

5) what min version do you recommend, or has the new DCGUI even changed tag?


bastya_elvtars

If you use script, why use the dat? scripts can be more customised. :S

Dunno what DCGUI knows the hashing.
Everything could have been anything else and it would have just as much meaning.

blackwings

QuoteOriginally posted by bastya_elvtars
If you use script, why use the dat? scripts can be more customised. :S

Dunno what DCGUI knows the hashing.
hmm, does ptokax just block without sending a message when using the "ClientTags.dat"?


SMF spam blocked by CleanTalk