Author

Topic: Block Tough Proxies and vps with PHP (Read 204 times)

full member
Activity: 630
Merit: 100
December 24, 2018, 10:22:28 AM
#7
Good idea but i think that it will work like nastyhost which ban half of the universe  Grin Grin Grin
Is nastyhost that troublesome?
I’ve only tried their API very briefly and didn’t really read up on them.
hero member
Activity: 1540
Merit: 508
December 24, 2018, 03:16:27 AM
#6
Good idea but i think that it will work like nastyhost which ban half of the universe  Grin Grin Grin
full member
Activity: 630
Merit: 100
December 24, 2018, 12:54:27 AM
#5
As I said, a lot of false positives...
I have played around with this particular piece of code in the past and a lot of “innocent” visitors got blocked.
So, I moved on to better solutions. Grin

Fufufuwu’s idea of a trust score is how the big boys rock it, but that’s pretty advanced stuff to set up yourself and nothing I’d do unless I really knew what I was doing. Behavioral analysis and predictive probabilities aren’t trivial...
jr. member
Activity: 319
Merit: 2
December 23, 2018, 03:21:49 PM
#4
I see the script has good intentions, but blocking off every traffic that has port 80 opened is not a good way to block proxies, as you will effectively block everyone that hosts a web server on their PC (actually a lot of devs tend to do that) and also it can harm good bots like Google or other search engines, blocking you off additional traffic from there. :/

In my opinion a better way for detecting proxies would be making a "trust score". Lets say that detecting the port 80 opened would lower the trust score, but not too much to block the visit yet. Then you can combine other ways of detecting proxy traffic (like nastyhosts or other API), and the traffic with lowest trust score would be blocked from accessing the website. That's my idea Grin
newbie
Activity: 7
Merit: 0
December 23, 2018, 02:48:44 PM
#3
Actually I think that's will not work properly

Many visitors will be blocked only.
full member
Activity: 630
Merit: 100
December 23, 2018, 10:23:56 AM
#2
You run a pretty substantial risk of seeing a lot of false positives with that particular code snippet.
After having been actively working on this for a long time, I think it’s safe to say there’s no easy bulletproof fix.
I have addressed this problem with my new upcoming faucet service. It’ll be 100% free and you’ll be able to screen for several different things, proxies is only one of the variables. Any faucet script should be able to use it but the exact implementation will naturally differ with each individual case. No worries though, it’ll be super easy, almost plug and pray. Release schedule, sometime this January. Grin
(Once I have my new faucets scripts available for the public, it will really be plug and pray.)
newbie
Activity: 81
Merit: 0
December 20, 2018, 03:51:26 AM
#1
Block Tough Proxies with PHP
To stop tough proxy visits from sites like hidemyass.com, add the following slice of finely crafted PHP to the top of your
header.php
 file:
die("Proxy access not allowed"); ?>
after my search for get bst way to prevent traffic come from proxy

i found this and i tested it ,so it is effective
for all faucet owners

source for more info
Jump to: