Is it financially safe to use stripe for payment processing with the main website in http?

Stripe.com is a service that allows payment processing to be outsourced. In a similar way to Oauth this works by exchanging tokens.
Of course, running one’s website on an unencrypted connection is very bad. But what about Stripe? Is it pos… Continue reading Is it financially safe to use stripe for payment processing with the main website in http?

What is this hacker trying to do by accessing stack exchange specific URLs on my site? [closed]

Every week or so, I see a set of requests like this in my server logs:
191.218.140.7 POST /users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fusers%2f6333444%2fmousetail-he-him 196 bytes 404 [Chrome]… Continue reading What is this hacker trying to do by accessing stack exchange specific URLs on my site? [closed]

Does a HTTP proxy assign a fixed egress port to a client, and if so, for how long?

Unlike a NAT gateway, a HTTP proxy have a fixed ingress port, that is, all HTTP clients will connect to a HTTP proxy via the same port. In this case, if there are two clients both requested the same domain through the same proxy, how would… Continue reading Does a HTTP proxy assign a fixed egress port to a client, and if so, for how long?

How to allow a user to login via client X.509 certificate or username/password?

I have a niche website programmed by a volunteer. Like pretty much every website it’s secured via TLS, and the main page doesn’t let you do much except login via username & password or request an account. Some users recently requested … Continue reading How to allow a user to login via client X.509 certificate or username/password?

how to reset only TCP connections to my web server which are just TCP packets, but no further HTTP packets

How to reset only TCP connections to my web server which are just TCP packets, but no further HTTP packets.
Let’s say I have a web server and users connect via browser (so, flow would be TCP handshake followed by SSL handshake and HTTP co… Continue reading how to reset only TCP connections to my web server which are just TCP packets, but no further HTTP packets

How to securely allow localhost to access through CORS, without exposing it to anyone’s localhost?

It is recommended to do this often in web apps:
import { NextResponse } from ‘next/server’
import type { NextRequest } from ‘next/server’

// Define allowed origins
const allowedOrigins = [
‘http://localhost:3000’,
‘http://localhost:30… Continue reading How to securely allow localhost to access through CORS, without exposing it to anyone’s localhost?