Sometimes some people visit your blog and put spam comments to market thier sites or blog, these spam comments are a problem for bloggers. Note that most of these spam comments come from a certain IP address. This can be tracked using a tracker placed in your blog.There is a simple trick / hack to block users by thier IP address from visiting your blog by using JavaScript and PHP .
All you need to block users from visiting your blog:
1. Login into your Blogger Dashboard and choose Edit HTML.
2. Search on <head> tag.
3. Then add the following code at the beginning of your blog's <head> tag.
|
---|
Replace the IP ranges from the above code with the IPs of the visitors you want to keep out of your blog. Example: If you want to block all IPs in the range '11.22.XXX.XXX', simply add "11.22" as the IP number in the above code.
1 comments:
I was looking for this information through other sites but i found this information really helpful for me.
Post a Comment