does_header_has added to block tor scanner

add_selenium_testing
moneroexamples 8 years ago
parent 4a856bc6f2
commit fc167d86b0

@ -121,6 +121,7 @@ int main(int ac, const char* av[]) {
// on the explorer. I block it with this
if (!xmreg::does_header_has(req, "Accept", "q=.2, */*; q=.2").empty())
{
cout << "Scanner with q=.2, */*; q=.2 blocked!" << endl;
return crow::response(400);
}
@ -134,7 +135,8 @@ int main(int ac, const char* av[]) {
// on the explorer. I block it with this
if (!xmreg::does_header_has(req, "Accept", "q=.2, */*; q=.2").empty())
{
return crow::response(400);;
cout << "Scanner with q=.2, */*; q=.2 blocked!" << endl;
return crow::response(400);
}
return crow::response(xmrblocks.show_block(block_hash));
@ -147,6 +149,7 @@ int main(int ac, const char* av[]) {
// on the explorer. I block it with this
if (!xmreg::does_header_has(req, "Accept", "q=.2, */*; q=.2").empty())
{
cout << "Scanner with q=.2, */*; q=.2 blocked!" << endl;
return crow::response(400);
}

Loading…
Cancel
Save