she had a dream. lovelier than any flower. the cold breeze came in, she pulled up the blankets; and when she opened her eyes, it was today. before she knew it, the season had changed. and so remained her last fantasy. forever in her heart.
by Anastasia in collaboration with a few Google searches
Tumblr allows you to block a user from sending you messages, but only if they were logged in when they sent you an anon. The more practical thing to do would be to prevent any user, whether they’re on Tumblr or not, from seeing your blog content altogether. If you use StatCounter or a similar service, you can easily trace the IPs of people who send you messages, and with the following script, you can block whatever IP you want from viewing your blog.
There are probably a ton of similar things already floating around but it won’t hurt to have another. Here’s the script code.
———-
Instructions
1. Copy-paste the script right before the </body> tag in your theme code.
2. Add IP addresses to block by entering them into the var blocklist line, putting each one in quotes and separating them by a comma. You can put as many as you want.
3. At this point you can leave the script as is, and when someone tries to access your blog from an IP address you blocked, they’ll see a blank page with the text “get off my blog.” Or you can customize the text and set it to something else.
4. Alternatively, you can automatically redirect them to a different page instead. To do this, remove the 2 slashes at the beginning of the next line and replace the URL inside the quotes with the URL of the page you want them to be redirected to. For example, if instead of saying “get off my blog” I wanted to redirect them to the dictionary definition of harassment, here’s what my code would look like:
Note: if you have additional pages on your blog (such as an about or FAQ page) that use a custom HTML layout instead of the standard layout, you’re going to have to copy-paste your final code before the </body> tag of each one of those as well. Your ask page and any other standard layout pages are automatically affected when you edit your main theme code.
———-
Disclaimer: Unfortunately, this script is very easily bypassed. I won’t list the many ways this can be done to avoid giving the less tech-savvy trolls ideas, but just know that it doesn’t make your blog bully-proof, and if anyone’s really dedicated to bugging you they’ll find a way to continue doing so.