At some point you may have the need to block one or more persons from reading your blog but the problem isn't severe enough to warrant making your blog private. This is particularly desirable if you end up with a persistent comment spammer. Blogger does not make this easy because there is no access to the .htaccess file and to date despite requests Blogger has not made an IP blocker available. The block can be in javascript (JS) or PHP format. You can add a JS gadget in your element layout that will effectively block one or more IP addresses. The problem with using JS is a user can simply diable JS to circumvent the script so they can still get through to your blog. I found the PHP code at Perishable Press (How to Block IP Addresses with PHP) and JS IP block code through Javascript Kit. The nice thing about the PHP code is it will work even if JS is turned off. You can modify the code in either to send the unwanted visitor to any site of your choice.
Quite frankly it really doesn't matter where you send them but the generic send to Google won't give them any idea of what you did if you use the PHP code. If you use the JS code you can give them a flip off message that they have been banned from your site.. If the unwanted visitor tries to access through an IP anonymizer then simply add the IP of the anonymizer as well. Now if a comment spammer is really persistent they can still get around this by using a computer at a different IP. In this case resort to tracking in your stats to identify the IP then add that IP to the block as well. Essentially what you are doing is setting up call block but instead of for your phone you are doing it to your blog. Once the comment spammer realizes s/h/it can't get through they will move onto greener pastures. You can leave the IP block on and modify as needed. Chances are good that you may only need to take this step once because persistent comment spammers are thankfully few and far between. I think it is a handy bit of coding to save just in case it is needed.
Garden Gnome
©2009-2010
Popular Posts
-
You would have to be a hermit with no access to media to not have heard of Charlie Sheen and his antics. When the producers of Two and a Ha...
-
"EL PLAN DE LA CALLE" (10-4-11-5:10PM Por: Ing. Dionisio de la Torre, Jr. Cuando escribo el Plan de la Calle, no quiero traer a...
-
Well the rumour went out that Google had updated their page rank so being a sucker for punishment I moseyed on over to check all of my blogs...
-
UN NI’O DE LIBERALES… (10-4-11-5:10PM) Por Andrés Pascual Tomado de El País de España hoy: “ …El movimiento Ocupa Wall Street, visto como ...
-
FRASES SOBRE EL NUEVO ORDEN MUNDIAL, DE POL Í TICOS FAMOSOS Y FIGURAS IMPORTANTES-XII (9-29-11-8:30AM) ) “Buscando un nuevo enemigo frente ...
-
RESERVE CON TIEMPO PARA EL ANIVERSARIO DE ALPHA 66 (9-14-11-9:15AM)
-
Living Sorrow(Germany) - The Kingdom of Sorrow (EP 1994) DOOM METAL EP 1994 Self released 1. Kingdom Of Sorrow 05:42 2. Born 05:33 3...
-
Schizo (Ita) - Main Frame Collapse (1989) Full-length, Flying/Crime Records 1989 1. Violence at the Morgue 01:21 2. Threshold of Pain 02:47 ...
-
I wrote earlier about the importance of checking existing links on your blogs. The reason for this is urls change and links go dead . Anot...
-
I came across a blog post the other day that said blogging was addictive. The author actually described symptoms they had if they didn'...
Friday, July 30, 2010
Subscribe to:
Post Comments (Atom)
Search This Blog
Popular Posts
-
Maggot (Poland) - Evil dead (demo 1991) GRINDCORE Demo 1991 Self released 1. Aby być 2. Prezydent I 3. Zapomnienie 4. Prezydent II 5. Nazi f...
-
L A HISTORIA(GR Á FICA) EN LA MEMORIA CUANDO "LOS BOLOS" ERAN LOS DUEÑOS DE CUBA-V ( 9-2-11-10:10AM ) En esta foto de 1989, ...
-
DESDE EL ARCHIPIÉLAGO: SIGUEN MUCHOS MONTANDO "LA GRAN COMEDIA NACIONAL" PARA BUSCAR PLATA DENUNCIA DE JOS É A. Á LVAREZ BRAVO (8...
-
EL MIEDO DEL QUE ESCRIBIMOS AYER (9-13-11-4:30PM) El siguientes un fragmento de un artículo de Osmani Sánchez en el blog de “La Polilla Cuba...
Blog Archive
-
▼
2010
(277)
-
▼
July
(31)
- A New Way to
- Blocking an IP with PHP
- The Pitch
- Pushing the Bar
- A Short Twitter Experiment
- Identifying Spammers Using Stats
- Not Allowing Comments
- Comment Spammers Are Indeed an Interesting Breed
- Affiliate Program Request for Participation
- Comment Spam From Advertising Networks
- Making Things Difficult Without Realizing It
- Draft Mode
- Don't Make Promises You Can't Keep
- The Issue of Blog Stats
- Blogger Stats
- A Twitter Rumour
- A Stats Opportunity or Should I Say Blog Fodder?
- Focus on What You Do Have Not on What You Don't Have
- It's Quality Not Quantity When it Comes to Commenting
- Private Advertising
- My Experience with Widget Advertising
- Every Day is a New Day When Blogging
- Oh That Scrambling Feeling
- Comment Policy
- Captcha
- A Custom Made Graphic Basic
- Using Polls on Blogs
- Scheduled Blog Post Timing
- Results from June's Twitter Experiment
- July's Blogging Experiment
- The Half Way Mark
-
▼
July
(31)
No comments:
Post a Comment