Lbs^2 a way to resolve comments spam-Application Tips

Source: Internet
Author: User
Tags comments
Yesterday began my blog was spam attack, because have to make a deal, solve this problem ~ ~ ~ ~
In fact lbs^2 all article comments are through the comment.asp file to submit, then spam is someone wrote the automation software class of Dongdong to automatically send through this file spam~~~
So we just have to change the comment.asp file name should be able to solve this problem ~ ~ ~
Of course, also want to use all comment.asp this document place also want to change a name to be possible ~ ~ ~
Eric asked a specific question about how to change it yesterday, so I'll say about it.
The first step, from the server to download all the files lbs^2 to the local, copy one as a backup, to prevent the wrong file change ~ ~ ~
The second step, the comment.asp file renamed, pay attention not to the. asp suffix changed ~ ~ ~ ~ (for example, changed to ybndow159ew.asp)
The third step, open Dreamweaver8, with his site definition function to lbs^2 folder defined as a site ~ ~ ~ (not the point here: Teach rookie learn DWMX 2004 custom site)
Fourth step, define a good site and press Crtl+f to bring up the Find and Replace dialog box
Step fifth, in the Find and Replace dialog box: Search scope Select "Entire current local site"; Search for "source code"; Find hit "" Comment.asp "(note" comment.asp, filename plus "); Replace" ybndow159ew.asp " (That is, you change the file name, also to add a "number" before the file name), the following option only select "Ignore blank", and then click "Replace All" button
The sixth step, after completion, will expand a box to show those files where the location was replaced, remember these replaced files, and then upload them to the server without spam interference ~ ~ ~
Note: The fifth step is to prevent the replacement of other file names containing the Comment.asp field, to ensure that you want to replace the folder accuracy Plus.

This can prevent spam, later if found there are spam, and then "comment.asp" Change a Name ~ ~ ~ ~
Of course, if the spam software can automatically find the new name of Comment.asp, this trick is not the spirit, ah, then really appear this kind of problem to think again ~ ~ ~ ~
over~~~

Update: In order to prevent through the search referral to find comment.asp files, you can robots.txt files in the site disallow your file ~ ~ ~ ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.