Bitcoin Forum
May 25, 2024, 06:04:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: [Tutorial] How to avoid visits by Proxies  (Read 5567 times)
zeflex
Full Member
***
Offline Offline

Activity: 180
Merit: 100


View Profile
October 22, 2015, 04:25:15 PM
 #21

You can not use this code like this ....

It's oop php , it's simply an example of the logic I use...
FaucetRank.com
Hero Member
*****
Offline Offline

Activity: 868
Merit: 500



View Profile WWW
October 22, 2015, 04:32:22 PM
 #22

You can not use this code like this ....

It's oop php , it's simply an example of the logic I use...

It would be nice if you share full tutorial because here many who don't understand a single word written in php like me Sad

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .SCAMMERS.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .EXPOSED.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
zeflex
Full Member
***
Offline Offline

Activity: 180
Merit: 100


View Profile
October 22, 2015, 04:38:11 PM
 #23

I can but I use a php Framework (Take a look on CakePhp) and it uses framework functionnalities.
onemorexmr
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250



View Profile
October 22, 2015, 04:40:57 PM
 #24

just curious: why do you want to block proxies?
imho as long as your ad provider pays you all should be fine? or are they refusing payments in that case?

XMR || Monero || monerodice.net || xmr.to || mymonero.com || openalias.org || you think bitcoin is fungible? watch this
FaucetRank.com
Hero Member
*****
Offline Offline

Activity: 868
Merit: 500



View Profile WWW
October 22, 2015, 04:44:15 PM
 #25

just curious: why do you want to block proxies?
imho as long as your ad provider pays you all should be fine? or are they refusing payments in that case?

What do you think ad provider is fool and many using AdSense so do you think Google is fool will pay you for proxy visit ?

AdSense will just ban if lot of proxy traffic your site get.

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .SCAMMERS.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .EXPOSED.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
zeflex
Full Member
***
Offline Offline

Activity: 180
Merit: 100


View Profile
October 22, 2015, 05:20:54 PM
 #26

just curious: why do you want to block proxies?
imho as long as your ad provider pays you all should be fine? or are they refusing payments in that case?

What do you think ad provider is fool and many using AdSense so do you think Google is fool will pay you for proxy visit ?

AdSense will just ban if lot of proxy traffic your site get.

And also what do you think if the same user change X times his ip in order to request more and more satos without waiting minimum time?
mari88
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
October 24, 2015, 02:39:23 PM
 #27

My code is :

Code:
	private function _checkProxyVpn() {

$ipAddress = $this->request->clientIp(false);

$bannedIps = Cache::read('ip_banned', '8week') ? Cache::read('ip_banned', '8week') : array();
if (isset($bannedIps[$ipAddress])) {
return true;
}

if (Cache::read('ip_' . $ipAddress, '1week')) {
return false;
}

if (Cache::read('getipintel_lock', '1h')) {
return false;
}

$url = sprintf('http://check.getipintel.net/check.php?ip=%s&format=json&contact=xxx@gmx.com', $ipAddress);
list($httpCode, $res) = self::curlIt($url);

if ($httpCode === 200) {
$res = json_decode($res);
if ($res->status === 'success') {
if ($res->result >= 0.9) {
$bannedIps[$ipAddress] = $res->result;
Cache::write('ip_banned', $bannedIps, '8week');

return true;
}
Cache::write('ip_' . $ipAddress, $res, '1week');
} else {
$this->log($res);
}
} elseif ($httpCode === 429) {
Cache::write('getipintel_lock', 1, '1h');
} else {
$this->log($res);
}

return false;
}

It's not documented but it could help a little bit to understand the logic.
Thank you friend


sounds really interesting will test your code on my Faucet Wink


kind regrads
mari88
wdnj
Hero Member
*****
Offline Offline

Activity: 762
Merit: 500



View Profile
February 09, 2016, 10:47:01 PM
 #28

I'm using second way to block proxies but it's not working Sad
Kprawn
Legendary
*
Offline Offline

Activity: 1904
Merit: 1073


View Profile
February 10, 2016, 02:55:12 PM
 #29

just curious: why do you want to block proxies?
imho as long as your ad provider pays you all should be fine? or are they refusing payments in that case?

A lot of users use proxies because some countries get higher payouts from faucets. They would much rather exert the same energy / electricity and get

paid more for their efforts. Some ad providers already started blocking some faucets, because they detected these proxies being used on a large scale.

In the long run, everyone will suffer when these ad providers pull the funding for all faucet websites.  Sad

THE FIRST DECENTRALIZED & PLAYER-OWNED CASINO
.EARNBET..EARN BITCOIN: DIVIDENDS
FOR-LIFETIME & MUCH MORE.
. BET WITH: BTCETHEOSLTCBCHWAXXRPBNB
.JOIN US: GITLABTWITTERTELEGRAM
FaucetRank.com
Hero Member
*****
Offline Offline

Activity: 868
Merit: 500



View Profile WWW
February 10, 2016, 05:05:45 PM
 #30

I have decided to block proxy from claiming free bits /satoshi I don't stop them from accessing my website .

so I don't use php part before docktyp I just used that in main index.php to stop giving free bits when they claim .

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .SCAMMERS.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .EXPOSED.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
wdnj
Hero Member
*****
Offline Offline

Activity: 762
Merit: 500



View Profile
February 10, 2016, 07:34:35 PM
 #31

I have decided to block proxy from claiming free bits /satoshi I don't stop them from accessing my website .

so I don't use php part before docktyp I just used that in main index.php to stop giving free bits when they claim .
plz how I can do this on my faucet site Smiley
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!