Use the below command if you want to block the particular url
iptables -A INPUT -d "app.worldindia.com" -p tcp -j DROP
Olá, preciso bloquear um formulário específico de URL engintron (nginx)
app.worldindia.com/pubclick/click?affiate_id=683&appoffer_id=4523&trans_id=53e5232
app.worldindia.com/pubclick/click?affiate_id=683&appoffer_id=4523&trans_id=53dad24
app.worldindia.com/pubclick/click?affiate_id=683&appoffer_id=4523&trans_id=9dsdm44
app.worldindia.com/pubclick/click?affiate_id=683&appoffer_id=4523&trans_id=5j33231
app.worldindia.com/pubclick/click?affiate_id=683&appoffer_id=4523&trans_id=51fsd32
app.worldindia.com/pubclick/click?affiate_id=683&appoffer_id=4523&trans_id=9823d22
Eu preciso bloquear o URL do afiliado específico com affiliate_id = 683. Todo o tráfego proveniente deste afiliado irá para o código de status 404
Use the below command if you want to block the particular url
iptables -A INPUT -d "app.worldindia.com" -p tcp -j DROP
nginx.conf
⋮
location = /pubclick/click {
if ( $arg_affiate_id = "683" ) {
return 404;
}
# {OTHER CODE HERE IF NOT 683}
}
⋮
Tags webserver nginx reverse-proxy