Search
Search Code
Search Code by entering your search text above.
linux
blocking ip range with ufw

You can block an entire IP range using CIDR (Classless Inter-Domain Routing) notation with ufw. To block all addresses under 57.141.2.x, you'd specify the network as 57.141.2.0/24.1     ..

6:42 am, August 19, 2025
linux
check and block connections script

a safe diagnostic script that helps you check and analyze the connections.    ⚠️ Why Automatic Blocking is a Bad Idea   You could lock yourself out: An automated script ..

6:18 am, August 19, 2025
linux
block ip address ranges on ubuntu linux with UFW

  sudo ufw deny from 203.0.113.0/24

5:31 am, August 18, 2025
blocking
blocking all ips in a range

block all ips in a range // The IP prefixes you want to block. Add a dot at the end.$ip_block = ['47.79.']; foreach ($ip_block as $ip_block_val) {  // Check if the user's IP address begins ..

7:50 am, June 25, 2025
wordpress
wp simple blocks plugin

Just saving this here for later testing: This is just AI generated crap that does not work, ignore it... ;)   Absolutely, let’s start fresh with a simple WordPress plugin that loads a si..

6:38 am, February 27, 2025
wordpress
wordpress block grid code

the basic wordpress grid column layout this is a 3 col layout

1:25 am, September 5, 2023
php
simple php ip blocker

just to quickly block annoying ip addresses using an array and $_SERVER['REMOTE_ADDR'] so i woke up this morning to find 200 comments from this spam ip, here is a simple script that will block that i..

11:26 pm, July 29, 2021
nginx
Nginx Server Block with Rewrite

Nginx Server Block with Rewrite Here is a basic nginx server block with rewrite to the index.php file. So it takes all the parameters and passes them into the index, into the variable $p or $_GE..

11:16 pm, March 29, 2020
css
design nice block header

I saw this the other day and thought the color scheme looked quite nice. Ill see if i can replicate it here. @import url('https://fonts.googleapis.com/css?family=Raleway:300'); .mid-header { ..

6:20 am, August 31, 2018
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote

You come to understand that most people are neither for you nor against you, they are thinking about themselves. You learn that no matter how hard you try to please, some people in this world are not going to love you, a lesson that is at first troubling and then really quite relaxing.” ​


John W. Gardner
Random CSS Property

prefix

The prefix descriptor of the @counter-style rule specifies content that will be prepended to the marker representation. If not specified, the default value will be "" (an empty string).
prefix (@counter-style) css reference