News:

Join the Facebook Fan Page.

Main Menu

httpBL

Started by Diego Andrés, February 17, 2010, 03:55:54 PM

Previous topic - Next topic

cyberdyne

Great, warning page looks fine.

Many thanks for the Mod and your reply :)
Using:
v.1.1.16
Custom theme (modified SMF Default Theme - Core)
AND
v.2.0.1
Custom theme (modified Bright Forest)

snoopy_virtual

You're welcome.  ;)

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

cyberdyne

Quote from: snoopy_virtual on April 18, 2011, 10:44:54 AM
You're welcome.  ;)

Just to confirm, it is working:



Thanks again
Using:
v.1.1.16
Custom theme (modified SMF Default Theme - Core)
AND
v.2.0.1
Custom theme (modified Bright Forest)

sharingsunshine

Hello,

I had httpBL working on a 1.1.12 install and after using the package manager to upgrade to 1.1.13 it has gone away.  Before I did the upgrade all files showed no problems.  I have checked the error log and nothing is showing up.

The link to the package on the navigation bar under the Members section has disappeared.

Please advise,

Thanks

Randal

"The Herbs Place" for People and Pets
Supplements, Herbs, Pet Foods, and More!
http://www.theherbsplace.com

cyberdyne

Quote from: sharingsunshine on April 20, 2011, 03:34:25 PM
Hello,

I had httpBL working on a 1.1.12 install and after using the package manager to upgrade to 1.1.13 it has gone away.  Before I did the upgrade all files showed no problems.  I have checked the error log and nothing is showing up.

The link to the package on the navigation bar under the Members section has disappeared.

Please advise,

Thanks

Randal

I'm pretty sure the upgrade process would have replaced all the files with their un-modded versions, therefore, you need to reinstall the mod.
Using:
v.1.1.16
Custom theme (modified SMF Default Theme - Core)
AND
v.2.0.1
Custom theme (modified Bright Forest)

Wizzlefits

You always want to un-install any mods before upgrading. As you've seen, it will kill a lot of stuff. lol
Download the latest version & install, should be good to go then.

sharingsunshine

Thanks for the help.  That did the trick!
"The Herbs Place" for People and Pets
Supplements, Herbs, Pet Foods, and More!
http://www.theherbsplace.com

cyberdyne

#667
Hi again.
I'd like to edit the log pages so that I can use an API I have which will look up the listed IP addresses externally upon clicking them - as opposed to simply using the internal 'trackip' function.

Could you please tell me which files to edit in order to insert my custom URL so that this will work?

If this is a lot of editing, just pointers on what change in the spammers log would be helpful.

Many thanks in advance.

Edit:
I found the following in httpBL.template.php

// Build the links for the IP and username
$link_ip = $log['ip'] == '' ? $txt['httpBL_unknown'] : '<a href="'. $scripturl. '?action=trackip;searchip='. $log['ip']. '"><strong>'. $log['ip']. '</strong></a>';
Using:
v.1.1.16
Custom theme (modified SMF Default Theme - Core)
AND
v.2.0.1
Custom theme (modified Bright Forest)

snoopy_virtual

That's exactly the point you need to edit if you want that link to go to another place.

As you can see the link just now takes you to:


href="'. $scripturl. '?action=trackip;searchip='. $log['ip']. '"


Where $scripturl is the URL of your index.php in your forum and $log['ip'] is the IP of that particular spammer.

If you tell me where you want the link to go I can tell you how to modify it, but if you know a little of PHP I suppose you can figure it out yourself.

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

cyberdyne

Great, although I wasn't sure whether to create a new entry in my language file and use perhaps, eg: $scripturl2 due to the problems using // causes or to try and simply enter the url into the script directly. Which would be best?

The url is:
http://api.ip-adress.com/?u=abcd=<ip address>

Many thanks
Using:
v.1.1.16
Custom theme (modified SMF Default Theme - Core)
AND
v.2.0.1
Custom theme (modified Bright Forest)

snoopy_virtual

If that's the URL you want, just change those 2 lines in httpBL.template.php to:


// Build the links for the IP and username
$link_ip = $log['ip'] == '' ? $txt['httpBL_unknown'] : '<a href="http://api.ip-adress.com/?u=abcd='. $log['ip']. '"><strong>'. $log['ip']. '</strong></a>';



Are you sure that URL is written properly?

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

cyberdyne

Works perfectly.

Many thanks for your help.  ;D
Using:
v.1.1.16
Custom theme (modified SMF Default Theme - Core)
AND
v.2.0.1
Custom theme (modified Bright Forest)

snoopy_virtual

You are welcome.

I have been thinking you can even leave both links if you want like this:


// Build the links for the IP and username
$link_ip = $log['ip'] == '' ? $txt['httpBL_unknown'] : '<a href="'. $scripturl. '?action=trackip;searchip='. $log['ip']. '"><strong>'. $log['ip']. '</strong></a> - <a href="http://api.ip-adress.com/?u=abcd='. $log['ip']. '"><strong>Ext-API</strong></a>';


This way you would have the chance to check every IP in 2 places.  ;)

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

cyberdyne

Even better. Much obliged :)
Using:
v.1.1.16
Custom theme (modified SMF Default Theme - Core)
AND
v.2.0.1
Custom theme (modified Bright Forest)

gizmo71

Got an error I've never seen before in my error log this morning - looks like there's a teeny weeny buglette in the way httpBL_look_for_empty_ip() is called in one specific and very rare case. The error is:
Quote2: Missing argument 1 for httpBL_look_for_empty_ip(), called in .../smf/Sources/httpBL_Subs.php on line 680 and defined
File: .../smf/Sources/httpBL_Subs.php
Line: 517

There are two obvious and simple solutions; firstly, make the function have a default value for its parameter, e.g. change line 517 to
Quotefunction httpBL_look_for_empty_ip($ip = '')
or pass an empty string when calling it from line 680, e.g.
Quote$ip = httpBL_look_for_empty_ip('');

I think I've seen one instance of this in the last 3 months so it's obviously a very unusual set of circumstances. ;D

snoopy_virtual

Sorry, I should have sorted that mistake ages ago.

Any of the solutions you suggest will work, or the solution I suggested some time ago (don't remember exactly where) when somebody else reported that bug before:

In /Sources/httpBL_Subs.php change line 680:


$ip = httpBL_look_for_empty_ip();


for this another one:


$ip = httpBL_look_for_empty_ip($ip);

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

gizmo71

Quote from: snoopy_virtual on May 06, 2011, 06:35:30 AM
Any of the solutions you suggest will work, or the solution I suggested some time ago (don't remember exactly where) when somebody else reported that bug before:

Ah, yes, that's much better, thanks Snoopy, I've rolled that into my forum for now. :)

HaCCaBi

#677
For Turkish...

Modifications.turkish.php
$txt['httpBL_honeyPot_link_error'] = 'Hatalı honeyPot bağlantısı. MOD\'unuzun httpBL ayarlarını kontrol edin.';
$txt['httpBL_honeyPot_key_error'] = 'Hatalı http:BL API key\'i. OD\'unuzun httpBL ayarlarını kontrol edin.';
$txt['httpBL_title'] = 'MOD httpBL';
$txt['httpBL_description'] = 'MOD httpBL foruma giren her ziyaretçinin IP\'sini projectshoneypot\'un veritabanında kayıtlı mı diye kontrol eder. Eğer IP kaydına veritabanındarastlarsa MOD bu kullanıcıyı direk warning.php dosyasına yönlendirerek foruma girişine engel olur. <br />Burada Mod\'u açıp kapatabilir bazı özelliklerini düzenleyebilirsiniz.';
$txt['httpBL_config'] = 'MOD httpBL ayarları';
$txt['httpBL_enable'] = 'Aç/Kapat MOD httpBL';
$txt['httpBL_enable_bad_API_key'] = 'Yazdığınız API key hatalıdır. Lütfen dikkatlice kontrol edip tekrar deneyiniz.';
$txt['httpBL_honeyPot_link'] = 'Honey Pot\'unuza link verin';
$txt['httpBL_honeyPot_link_sub'] = 'Eğer MOD httpBL\'yi kullanabilmek için Honey Pot\'un sunucunuzda kurulu olması gerekmektedir. Eğer henüz edinmediyseniz project honey pot sayfasına gidip <a href="http://www.projecthoneypot.org/?rf=62759" target="_blank">www.projecthoneypot.org</a>
gerekli kurulum dosyalarını edinmelisiniz. Daha sonra buraya edindiğiniz Honey Pot dosyasının bağlantısını yazınız.
Şöyle birşey olmalı:<br /><b>http://www.siteniz.com/honeypotunuz.php</b>';
$txt['httpBL_honeyPot_key'] = 'Honey Put\'unuzun http:BL API key\'i';
$txt['httpBL_honeyPot_key_sub'] = 'Eğer MOD httpBL\'yi kullanmak istiyorsanız bir tane de
http:BL API key\'i Project Honey Pot websitesinden edinmiş olmanız gerekmektedir. Eğer henüz edinmediyseniz Project Honey Pot\'un websitesine gidip
<a href="http://www.projecthoneypot.org/?rf=62759" target="_blank">www.projecthoneypot.org</a>
bir tane edinmek için kayıt olmalı ve buraya yazmalısınız. Not olarak: öncelikle Honey Pot kurulumunu gerçekleştirmediyseniz size http:BL API key\'i verilmeyecektir. Dolayısıyla öncelikle Honey Pot kurulumunu gerçekleştirmeniz gerekmektedir.';
$txt['httpBL_honeyPot_word'] = 'Honey Pot dosyasına vermek istediğiniz bağlantı';
$txt['httpBL_honeyPot_word_sub'] = 'Bu sadece spamcılara gözükecek olan bir kelimedir. Spamcıların üzerine tıklayabileceği ilgi çekici herhangi birşeyler yazabilirsiniz. Eğer yazacak birşeyler bulamıyorsanız boş bırakabilirsiniz. Mod sizin için bu işi yapacaktır.';
$txt['httpBL_info_email_1'] = 'Email\'inizin ilk kelimesi';
$txt['httpBL_info_email_2'] = 'Email\'inizin ikinci kelimesi';
$txt['httpBL_info_email_3'] = 'Email\'inizin üçüncü kelimesi';
$txt['httpBL_info_email_sub'] = 'Mod\'un herhangi şüpheli bir durumla karşılaştığında bir robotmu insanmı olduğunu algılayabilmesi için warning.php sayfasında email adresi soracaktır. Email adreslerini robotların algılayamayacağı 3 kelimeye ayırdık. Örneğin Eğer email adresiniz <b>[email protected]</b> ise, ilk kelime <b>info</b>, ikincisi <b>benimsitem</b> ve üçüncüsü de  <b>com</b> olacaktır.';
$txt['httpBL_enable_bad_email'] = 'Yazdığınız Email adresini kontrol edin.
3 kelimeden herhangi birtanesini boş bırakamazsınız.';
$txt['httpBL_bad_last_activity'] = 'Bir Ip için şüpheci yaklaşılmayacak gün sayısı';
$txt['httpBL_bad_last_activity_sub'] = 'IP çok önceleri bir spamcı tarafından kullanılmış fakat hiçkimse bu IP\'yi
bu zaman süresince  yanlış birşey yaparken görmemişse bu IP adresini tehlikeli olarak görmüyoruz ve ziyaretçi geçişine izin veriyoruz.';
$txt['httpBL_bad_threat'] = 'Kötü denebilmesi için tehdit seviyesi';
$txt['httpBL_bad_threat_sub'] = 'Project Honey Pot her IP adresine yaptıkları ve ne kadar süre önce yaptığı durumlarına bağlı kalarak hergün değişebilecek bir tehdit seviyesi belirler. Burada belirleyeceğiniz seviyeyi aşan IP adresleri güvenlik duvarını aşıp foruma giremeyecektir.
Modun nasıl çalıştığını tam kavrayamadan bu son 2 değeri değiştirmenizi tavsiye etmiyoruz.';
$txt['httpBL_viewlog_extra'] = 'Log dosyasından ekstra bilgi görüntüle';
$txt['httpBL_viewlog_extra_sub'] = 'Eğer bunu seçerseniz log dosyasındaki tüm bilgileri göreceksiniz, log dosyası çok büyük olabilir ve size ulaşmanız gereken önemli veriyi görmenize engel olabilir. Bazen sadece bizim için önemli olan bilgileri görmemiz daha iyidir.';
$txt['httpBL_config_sub_1'] = 'Eğer "warning.php" sayfanızın bu ayarlarla görünümüze bakmak istiyorsanız (Bu sayfa IP Adresi seviyesi tehlikeli olarak belirlenenler\'in yönlendirileceği sayfadır)
bu bağlantıya tıklayın:';
$txt['httpBL_config_sub_2'] = '
Eğer tasarımını ve çeviri dilini değiştirmek istiyorsanız ve nasıl olacağını bilmiyorsanız destek forumlarından yardım isteyebilirsiniz:';
$txt['httpBL_viewlog'] = 'MOD httpBL log';
$txt['httpBL_viewlog_description'] = 'MOD httpBL herzaman tesbit ettiği bir spamcıyı engelleyecektir. Buradan log dosyası aracılığıyla tüm bunları görebilirsiniz.';
$txt['httpBL_log_no_entries'] = 'MOD httpBL log dosyasına kayıtlı herhangi bir veri bulunmamaktadır';
$txt['httpBL_log_date'] = 'Tarih';
$txt['httpBL_log_ip'] = 'IP';
$txt['httpBL_log_threat'] = 'Th. Sv.';
$txt['httpBL_log_threat_long'] = 'Tehdit Seviyesi - Bu IP adresinin Project Honey Pot veritabanındaki belirlenmiş olan tehdit seviyesi.';
$txt['httpBL_log_activity'] = 'S. K. G.';
$txt['httpBL_log_activity_long'] = 'Son Kötü Girişim - Bu IP adresinin yanlış şeyler yaparken görüldüğü gün sayısı.';
$txt['httpBL_log_suspicious'] = 'Ş.';
$txt['httpBL_log_suspicious_long'] = 'Şüpheliler - Spamcı olabileceğinden şüphelenilenler.';
$txt['httpBL_log_harvester'] = 'H.';
$txt['httpBL_log_harvester_long'] = 'Harvester - Internette dolaşıp email adreslerini tarayan bulduğu adresleri daha sonra spam göndermek için kaydeden bir robot.';
$txt['httpBL_log_comment'] = 'Y.';
$txt['httpBL_log_comment_long'] = 'Yorum Spamcısı - FOrumlara ve bloglara habire sayfalar dolusu lin gönderen robot spamcı.';
$txt['httpBL_log_url'] = 'Sayfa';
$txt['httpBL_log_url_long'] = 'Bu IP adresinin giriş yapmak isterken tespit edilip engellendiği sayfa.';
$txt['httpBL_log_user_agent'] = 'Bu IP adresi tarafından kullanılan tarayıcı';
$txt['httpBL_log_error_message'] = 'Hata Mesajı';
$txt['httpBL_log_no_error'] = 'Hata yok';
$txt['httpBL_log_remove_all_confirm'] = 'Tüm MOD httpBL log kayıtlarını silmek istediğinizden emin misiniz?';
$txt['httpBL_log_remove_selected_confirm'] = 'Seçili Tüm MOD httpBL log kayıtlarını silmek istediğinizden emin misiniz?';
$txt['httpBL_yes'] = 'Evet';
$txt['httpBL_pages'] = 'Sayfalar';
$txt['httpBL_threat_low'] = 'Düşük tehdit';
$txt['httpBL_threat_medium'] = 'Orta seviyeli tehdit';
$txt['httpBL_threat_high'] = 'Yüksek seviyede tehdit';
$txt['httpBL_threat_very_high'] = 'Çok yüksek seviyede tehdit';
$txt['httpBL_threat_colors'] = 'Renklerin anlamı:';



warning.php turkish and english
/*******************
*  Set 1 - Turkish *
*******************/
$txt['httpBL_warn_title_1'] = 'UYARI';
$txt['httpBL_warn_denied_1'] = 'Erişim Engellendi';
$txt['httpBL_warn_head_1'] = 'Anti-spam programımız sizin forumumuza spam göndermeye çalışan bir robot olduğunuzu belirledi.';
$txt['httpBL_warn_infected_1'] = 'Bunun sebebi sizin bilgisayarınız\'a ya da aynı ağı paylaştığınız başka bir bilgisayar\'a <strong>virüs, truva atı ya da solucan</strong> bulaşmış olabilir.  Virüslü bilgisayarlar sahibinin bilgisi dışında suçlular tarafından spam gönderme ve sitelere saldırma amacıyla kullanılabilir.';
$txt['httpBL_warn_dynamic_IP_1'] = '
Eğer Dinamik IP kullanıyorsanız, IP adresiniz internete her girdiğinizde değişiyor demektir. Belkide problem yalnızca şuan kullandığınız IP adresinin daha önce virüs ve türevlerinin bulaşmış olduğu bir bilgisayar tarafından kullanılmış olabilir. Eğer isterseniz yeni bir IP adresi almak için modeminize reset atıp yeni bir IP adresi alarak forumumuza problemsiz bir şekilde erişim sağlayabilirsiniz.';
$txt['httpBL_warn_technician_1_1'] = 'Bilgisayarınıza virüs bulaşıp bulaşmadığını tesbit etmek ve virüsü temizlemek için teknik servis\'inize danışmanızı ve onlardan IP adresinizin durumunu örenebilmeniz için <strong>www.projecthoneypot.org</strong> sitesini ziyaret etmesini sağlayabilirsiniz:';
$txt['httpBL_warn_technician_2_1'] = 'tam olarak nelerin yanlış gittiğini görmek için.';
$txt['httpBL_warn_info_1'] = 'Daha fazla bilgi için lütfen iletişim\'e geçin:';
$txt['httpBL_warn_at_1'] = 'at';
$txt['httpBL_warn_dot_1'] = 'dot';
$txt['httpBL_warn_hurry_1'] = '
Aşağı\'da detaylı açıklama yaptık yine de sayfamızı görmek istiyorsanız robot mu insan mı olduğunuzu tesbit edebilmemiz için size yanıtlayabileceğiniz 2 kolay soru soracağız. Robot olmadığınızı kanıtlamak için lütfen bu ilk soruyu cevaplayın. (sadece rakam) daha sonra <strong>"Gönder"</strong> butonuna tıklayın:';
$txt['httpBL_warn_send_1'] = 'Gönder';
$txt['httpBL_warn_blank_1'] = 'Lütfen bu kutuyu boş bırakın.<br />Cevabı yukarıdaki kutuya yazın.';
$txt['httpBL_warn_wrong_1'] = 'Yanlış';
$txt['httpBL_warn_wrong_head_1'] = 'Hatalı cevap.';
$txt['httpBL_warn_wrong_answer_1'] = 'Belki biz iyi izah edemedik belki de cevabı yanlış girdiniz. Burada 2 satır var İlk satırda gördüğünüz gibi kolay bir hesap işlemi ve boş bir kutu ve Gönder butonu var. İlk kutu cevabı yazacağınız kutudur. (sadece rakam olarak) ardından butona basmanız gerekmektedir. İkinci satırdaki boş kutuya birşey yapmadan olduğu gibi bırakacaksınız.';
$txt['httpBL_warn_good_1'] = 'İyi';
$txt['httpBL_warn_good_head_1'] = 'Doğru cevap.';
$txt['httpBL_warn_good_answer_1'] = '
Cevabınız doğruydu ancak robotlar rastgele rakamlar girerek cevabı bulup bu aşamayı geçebilirler. Tabiki bunu üst üste iki kez doğru olarak yapmaları olanaksız. Buyüzden size bir soru daha soruyoruz. Lütfen ikinci soruya da cevap verdikten sonra <strong>"Gönder"</strong> botonuna tıklayın:';

/*******************
*  Set 2 - English *
*******************/

$txt['httpBL_warn_title_2'] = 'Warning';
$txt['httpBL_warn_denied_2'] = 'Access Denied';
$txt['httpBL_warn_head_2'] = 'Our anti-spam program has detected that you are a robot trying to send spam via our forum.';
$txt['httpBL_warn_infected_2'] = 'The most likely cause is that your computer, or another computer operating on your local network, has been <strong>infected with a virus, trojan, or worm</strong>. Infected computers are used by criminals, without their owners knowledge, to send spam and attack websites like this one you are trying yo visit.';
$txt['httpBL_warn_dynamic_IP_2'] = 'If you are using a dynamic IP, the kind of IP that changes every time you re-start your router, maybe the only problem is that today you are using an IP that used to belong to an infected computer some time ago, so you can try, if you want, to re-start your router and your computer and open again one of our web pages to see if you can access them normally now.';
$txt['httpBL_warn_technician_1_2'] = 'Anyway, to test whether your computer is infected, and to remove any possible infection, we would recomend you to contact as soon as possible a computer technician and ask them to visit <strong>www.projecthoneypot.org</strong> and check the details for your IP:';
$txt['httpBL_warn_technician_2_2'] = 'to see exactly what it has been doing wrong.';
$txt['httpBL_warn_info_2'] = 'For more information, please contact:';
$txt['httpBL_warn_at_2'] = 'at';
$txt['httpBL_warn_dot_2'] = 'dot';
$txt['httpBL_warn_hurry_2'] = 'You have a more detailed explanation about it below these lines but, in case you are in a hurry to see our pages and you haven\'t got time just now to scan your computer looking for a possible virus, we can let you in temporarily. We are going to ask you 2 easy questions writing them in a way a robot wouldn\'t be able to see. Please answer this first question (just the number) to prove you are not a robot and press the <strong>"Send"</strong> button:';
$txt['httpBL_warn_send_2'] = 'Send';
$txt['httpBL_warn_blank_2'] = 'Please leave this field blank.<br />Write the answer in the above field.';
$txt['httpBL_warn_wrong_2'] = 'Wrong';
$txt['httpBL_warn_wrong_head_2'] = 'Incorrect answer.';
$txt['httpBL_warn_wrong_answer_2'] = 'Maybe we didn\'t explain it properly or maybe you pressed the wrong key. What you have here are 2 different rows. In the first row you can see an easy sum, an empty field and a "Send" button. In that first empty field you need to write the answer (just the number) and press the button. You should leave the field in the second row empty, as it is just now.';
$txt['httpBL_warn_good_2'] = 'Good';
$txt['httpBL_warn_good_head_2'] = 'Correct answer.';
$txt['httpBL_warn_good_answer_2'] = 'Your answer was right, but please notice that a robot, even not been able to see or understand the question, could have got the right answer just trying random numbers. Of course it will be impossible to get the answer right twice in a row just by chance so, if you don\'t mind, please answer this last question and press again the <strong>"Send"</strong> button:';

/**********************************************************************************
* END - INFORMATION FOR TRANSLATORS                                               *
**********************************************************************************/
En Kötü MARKA Dani MARKA

snoopy_virtual

Thanks HaCCaBi

I will add your translation to the language pack as soon as I have some time.  ;)

El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

SumolX

Great Mod!  But I'm not sure why I keep getting this warning:
QuoteMod httpBL is ON but there is no connection just now with HoneyPot. Please try later.

Is this normal for new activations?

Advertisement: