Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post SEO - How To Ban Bots 
 
how can i ban bots? i think my server is very slow!
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: How Ban Bots 
 
i think you cannot do this  
 



 
sonoangeloSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
I did that with Yahoo bots and my site speeded up a lot


First of all you will need to "study" a bit the bots that browse your site... usually they come from a limited range of IPs... like 2 or 3 classes. Take a day or two and take note of ips of all bots.


Than from ACP go to Users >>> Ban user and insert the IP ranges you want to ban.


Just to give an example, I banned the following ranges (all Yahoo's):


72.30.*.*

74.6.*.*




NOTE: surely I could ban those ips in a more accurately way, but since I have only italian users, I don't care if someone from California cannot register
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
Avoiding Bot's: A guide by Rodrigo Ferrari - phpBB Brasil Administrator (www.phpbbrasil.com.br)


OPEN
includes/usercp_register.php

FIND
Quote:
$username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';


REPLACE
Quote:
$username = ( !empty($HTTP_POST_VARS['usuario']) ) ? phpbb_clean_username($HTTP_POST_VARS['usuario']) : '';


OPEN
templates/SubSilver/profile_add_body.tpl

FIND ALL
Quote:
name="username"


REPLACE ALL
Quote:
name="usuario"


You can replace the word 'usuario' (in portuguese means user) for any other word that you prefer. This confuses bots, and they cannot register or post messages.

Tested and approved by our community.

I hope this useful for you, guys!

The original link is http://www.phpbbrasil.com.br/phpBB/...der=asc&start=0

Bye!
 




____________
.:: phpBB Brazilian Support Forums ::.
 
mih bonattoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
mih bonatto wrote: [View Post]
Avoiding Bot's: A guide by Rodrigo Ferrari - phpBB Brasil Administrator (www.phpbbrasil.com.br)


OPEN
includes/usercp_register.php

FIND
Quote:
$username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : '';


REPLACE
Quote:
$username = ( !empty($HTTP_POST_VARS['usuario']) ) ? phpbb_clean_username($HTTP_POST_VARS['usuario']) : '';


OPEN
templates/SubSilver/profile_add_body.tpl

FIND ALL
Quote:
name="username"


REPLACE ALL
Quote:
name="usuario"


You can replace the word 'usuario' (in portuguese means user) for any other word that you prefer. This confuses bots, and they cannot register or post messages.

Tested and approved by our community.

I hope this useful for you, guys!

The original link is http://www.phpbbrasil.com.br/phpBB/...der=asc&start=0

Bye!



Thanks mih bonatto, this could be very useful to avoid spam bot (I use captcha, till now it has been enough).


Gianni's problem was a bit different: it has problem with his site's speed, because of spider bots continuosly browsing his site. Me too I have had this problem, they don't register or post anything, they just browse every single page of your board... the steal a lot of bandwidth and resources


I explained that because it could be useful for someone: for me it took a while (since I am a noob   ) to understand that my site was slow because of those damn bots.





ps: replacing $HTTP_POST_VARS['username'] doesn't give problems to Firefox for the autofill function?
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
Hi Vortex.

I undestood Gianni's question, but this changes could help him with his phpBB XS slows. For me it worked.

I created a .htaccess to restring bots, and helped too. Just one protection doesn't help to stop bots, needs a lot of tools to do that...

I just give you, guys, one of them  

About your question, I asked Ferrari today, and as soon he answers me, I answer topic too. Or he answers himself! I gave him link to here.

Sorry if I wrote some wrong, but I have a precary english xD

Bye bye
 




____________
.:: phpBB Brazilian Support Forums ::.
 
mih bonattoSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
mih bonatto wrote: [View Post]
Hi Vortex.

I undestood Gianni's question, but this changes could help him with his phpBB XS slows. For me it worked.

I created a .htaccess to restring bots, and helped too. Just one protection doesn't help to stop bots, needs a lot of tools to do that...

I just give you, guys, one of them  



Yes of course we're here to help each other, didn't want to insinuate you didn't understand... sorry if I gave that impression


Regarding .htaccess I know nothing about it... what should I do to restrict bots access with it?


Quote:

About your question, I asked Ferrari today, and as soon he answers me, I answer topic too. Or he answers himself! I gave him link to here.



Thanks, I'll wait...


ps: don't worry about your english, it's perfectly understandable
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
Vortex wrote: [View Post]
I did that with Yahoo bots and my site speeded up a lot


First of all you will need to "study" a bit the bots that browse your site... usually they come from a limited range of IPs... like 2 or 3 classes. Take a day or two and take note of ips of all bots.


Than from ACP go to Users >>> Ban user and insert the IP ranges you want to ban.


Just to give an example, I banned the following ranges (all Yahoo's):


72.30.*.*

74.6.*.*




NOTE: surely I could ban those ips in a more accurately way, but since I have only italian users, I don't care if someone from California cannot register


thanks!


i have to do to Bantron, isn't it?
If i specify an IP range, it gives me an error: User does not exist.
I tried to put GoogleBot, but same thing.

I have to put an other existing username and ban it?



---EDIT---

found! i can ban only IP address!  
 



 
Gianni PBSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
Gianni PB wrote: [View Post]



found! i can ban only IP address!  



Fine, let us know if your site speeds up with that
 



 
VortexSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
Great topic... added to Docs section...

Thank you all!
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: How Ban Bots 
 
I've had problems with the banning system after installing CT v5

I also got the message "user does not excist" while banning ip ranges, what i did to solve it:

Open adminadmin_user_ban.php

Code: [Download] [Hide]
  1.  
  2. Find  
  3.  
  4. // CrackerTracker v5.x  
  5.       if ( !empty($HTTP_POST_VARS['ban_email']) )  
  6.       {  
  7.          include_once($phpbb_root_path . 'ctracker/constants.' . $phpEx);  
  8.          $temp_userdata = get_userdata(CT_FIRST_ADMIN_UID, false);  
  9.          if( !$temp_userdata )  
  10.          {  
  11.             message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );  
  12.          }  
  13.  
  14.          if ( $temp_userdata['user_email'] == $HTTP_POST_VARS['ban_email'] )  
  15.          {  
  16.             message_die(GENERAL_MESSAGE, $lang['ctracker_gmb_1stadmin']);  
  17.          }  
  18.       }  
  19.  
  20. Replace with:  
  21.  
  22. // CrackerTracker v5.x  
  23. //      if ( !empty($HTTP_POST_VARS['ban_email']) )  
  24. //      {  
  25. //         include_once($phpbb_root_path . 'ctracker/constants.' . $phpEx);  
  26. //         $temp_userdata = get_userdata(CT_FIRST_ADMIN_UID, false);  
  27. //         if( !$temp_userdata )  
  28. //         {  
  29. //            message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] );  
  30. //         }  
  31. //  
  32. //         if ( $temp_userdata['user_email'] == $HTTP_POST_VARS['ban_email'] )  
  33. //         {  
  34. //            message_die(GENERAL_MESSAGE, $lang['ctracker_gmb_1stadmin']);  
  35. //         }  
  36. //      }  
  37.  
  38.  


Now be aware this disables some functionallity is CT, however till now i've not had any problems by disableling this part.
 



 
MrCSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML

HideSimilar Topics

Topic Author Forum Replies Last Post
No new posts Add New Bots buldo Old Docs 5 Mon 18 Sep, 2006 21:58 View latest post
KugeLSichA
No new posts Get Rif Of Spider Bots borbo Old Support Topics 4 Sun 10 Jun, 2007 19:51 View latest post
Vortex
This topic is locked: you cannot edit posts or make replies. No More Spam Bots.... charades Old Support Topics 4 Thu 20 Sep, 2007 23:40 View latest post
Mighty Gorgon
No new posts Bots... Mighty Gorgon English Chit Chat 16 Sun 16 Nov, 2008 10:02 View latest post
Mighty Gorgon
No new posts How To Explude Bots From Visit_counter spydie Old Support Topics 0 Wed 10 Feb, 2010 20:45 View latest post
spydie




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron