How to blacklist an IP (Web Server)

Is it possible - in a web server application ) to black list an user by its IP (without sending anything to it) ?

http://documentation.xojo.com/index.php/WebSession.RemoteAddress

if aWebSession.RemoteAddress = "123.123.123.123" then // show whatever to let the user know he will never see anything beyond Forbidden, or CGI error, // or anything you want. Or nothing at all. Or quit... end if

Keep in mind that ip addresses change over time, so you shouldn’t make a static black list. The best place to do this sort of thing is at the firewall, so the requests never reach your app.

Thank you for your answers.

I actually do not get anything. The request vanishes in the ether…net (internet in the kosmos).

But a friend of mine told me he have access to the target web site (with a Tablet / PC) using a different Internet Provider than the one I use.

My Internet Provider usually report error messages (you do not have access to that site) or not if the USED protocol is ftp.

[quote=91419:@Emile Schwarz]Thank you for your answers.

I actually do not get anything. The request vanishes in the ether…net (internet in the kosmos).

But a friend of mine told me he have access to the target web site (with a Tablet / PC) using a different Internet Provider than the one I use.

My Internet Provider usually report error messages (you do not have access to that site) or not if the USED protocol is ftp.[/quote]

I thought you wanted your app to block a user. Your should have explained better, like you just did.

Is your friend in France as well ? Often enough, site operators block non american IPs to conserve bandwidth. Hence what you observed.

A good example is https://www.healthcare.gov/ which is readily available in the US but not in Europe.

You can still access such a blocked site by using a VPN (see https://duckduckgo.com/?q=vpn ) or some web-based proxy supporting https ( https://duckduckgo.com/?q=us+web+proxy+https+free ).

Yes.

He’s from Quebec (ca). He used a tablet (android probably) or a PC (I do not recall). I will meet him tomorrow (he will go back home next week).

Proxy: McDonald’s ISP reject the proxy / ftp and many, many other sites. (even google translate on queries are rejected).

[quote=91442:@Emile Schwarz]Yes.

He’s from Quebec (ca). He used a tablet (android probably) or a PC (I do not recall). I will meet him tomorrow (he will go back home next week).

Proxy: McDonald’s ISP reject the proxy / ftp and many, many other sites. (even google translate on queries are rejected).[/quote]

So, which site are you trying to reach ?