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 ~~~