Tag: IP

How to protect my website from bots

In the article “How to block by Referer, User Agent, URL, query string, IP and their combinations in mod_rewrite” I showed how to block requests to a site that match several parameters at once – on the one hand, it is effective against bots, on the other – practically eliminates false positives, that is, when a regular user who is...

Configuring Squid Proxy with Multiple IP Addresses

Suppose the server has several IP addresses – on the same interface or on different ones – it doesn't matter. Objective: make Squid use different external IP addresses depending on which port of the proxy server is being accessed. So, as you can see, my test server has 5 IP addresses, 1 IPv4 address and 4 IPv6 addresses: 185.117.153.79 2a02:f680:1:1100::3d5f...

How to configure Squid to use IPv4

Because the IPv6 Internet is as fast or faster than the IPv4 Internet for most networks, Squid prefers to connect to websites over IPv6. The “dns_v4_first on” option changes the order of preference so that Squid will first bind to dual-stack websites over IPv4. Squid will still do both IPv6 and IPv4 DNS queries before connecting. A WARNING. This parameter...

How to check if my router supports IPv6

How to open a site on IPv6 The fastest and easiest way to find out if a router can work with IPv6 is to check if it can open a site with an IPv6 address. Use the service “Do I have IPv6”. This website allows you to connect to it in a variety of ways – just follow the link...

How to block by Referer, User Agent, URL, query string, IP and their combinations in mod_rewrite

As part of the fight against the influx of bots to the site (see the screenshot above), I had to refresh my knowledge of mod_rewrite. Below are examples of mod_rewrite rules that allow you to perform certain actions (such as blocking) for users who meet a large number of criteria at once – see the most recent example to see...
Loading...
X