con php non lo puoi fare

con altri soft si

tipo ettercap becca anche i proxy