This site is no longer updated but kept as it still get lots of traffic. You can find more updated information about me at jenswedin.com.


No access

Just added an access list to my webserver. Really simple to keep the spamers away.

Just add a file called “.htaccess” in the root of your webserver, this is where all the PHP, HTML files are.

Make the file readable by the server, in my case apache (apache is the default user).

In the file, write:

order allow,deny
allow from all

# These have been spamin my blog
deny from 148.244.150.0
deny from 65.69.191.0
deny from 203.113.29.0

and so on.

You can also make the file readable by the WordPress, then you can add / remove IP’s directly from WordPress instead of doing it from an FTP / SSH program.

There is alot of options to the .htacess file, I will not go into that right now.

Read more about .httaccess files

Leave a comment