Home » Developing U++ » UppHub » Updated Protect package 
	
		
		
			| Updated Protect package [message #36774] | 
			Tue, 03 July 2012 15:32  | 
		 
		
			
				
				
				
					
						  
						mdelfede
						 Messages: 1310 Registered: September 2007 
						
					 | 
					Ultimate Contributor  | 
					 | 
		 
		 
	 | 
 
	
		Having some 'smart' customers that used to register once a month for the monthly demo with different emails, I've implemented an additional checking on network cards MACs of customers PC. 
 
Now, if you like, you can : 
 
- Record all MACs of connecting clients (ALL, of ALL network cards) 
  along with emails used to register/connect to application 
 
- Get an email with 'offending' client if he tries to register  
  again with an already used MAC 
 
- Optionally block registration if client's MAC were already used 
 
Code is not documented, but easy to use as usual; there are those new member functions : 
 
	ProtectServer &SetRecordMACs(bool rec = true);
	ProtectServer &SetNoRecordMACs(void);
	
	ProtectServer &SetCheckExistingMAC(double check = true);
	ProtectServer &SetNoCheckExistingMAC(void);
	
	ProtectServer &SetMACAlertEMail(String const &m);
	ProtectServer &ClearMACAlertEMail(void);
	
	ProtectServer &SetEnforceMAC(bool e);
	ProtectServer &SetNoEnforceMAC(void);
  
 
Which I guess are self-explaining. 
Default behaviour is to RECORD all macs if client gives them out, NOT enforce MAC from clients (to be able to use old clients...), NO alert mail and NO blocking registration if already used. 
 
Ciao 
 
Max 
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 12:06:09 CET 2025 
 Total time taken to generate the page: 0.16399 seconds 
 |