LBS ^ 2 a solution to SPAM comments

Source: Internet
Author: User

My BLOG was attacked by SPAM since yesterday, because I had to solve this problem ~~~
In fact, all the comments in LBS ^ 2 are comment. if you submit an asp file, then SPAM is a kind of stuff such as the automation software to automatically send SPAM through this file ~~~
So we can solve this problem by renaming the comment. asp file ~~~
Of course, you must change the name of all the places that use the comment. asp file ~~~
Eric asked me how to change it yesterday. Let me talk about it ~~~
Step 1: Download all files of LBS ^ 2 from the server to the local device, copy one copy as a backup, and prevent file correction ~~~
Step 2. Rename the comment. asp file. Be sure not to change the. asp suffix ~~~~ (For example, ybndow159ew. asp)
Step 3: Open Dreamweaver8 and use its website definition function to define the folder in which LBS ^ 2 is located as a site ~~~ (No, click here: Teach cainiao to learn about DWMX 2004 custom sites)
Step 4. Define the site and press Crtl + F to bring up the "search and replace" dialog box
Step 5. In the "search and replace" dialog box, select "entire local site" for the search range, select "Source code" for the search, and click "comment" for the search. asp (note: "comment. asp, add a "number before the file name); Replace" ybndow159ew. asp (that is, the file name you changed, you must add a "number before the file name), the following options only select" ignore blank ", and then click" replace all "button
Step 6. After the completion, a box will be displayed to show the locations where the files have been replaced. Remember these files, then they are uploaded to the server without SPAM interference ~~~
Note: Step 5 adds the "no." To prevent replacement of other file names containing the comment. asp field and ensure the accuracy of the folder to be replaced.

This prevents SPAM. If the SPAM is available again later, change "comment. asp" to a new name ~~~
Of course, if the SPAM software is used, you can automatically find the new name of comment. asp, which will not work. Well, then you can find a solution to this problem ~~~
OVER ~~~

Update: to prevent the comment. asp file from being found by searching for recommendations, You Can Disallow your file in the robots.txt file of the site ~~~

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.