How to protect your Simple Machines (SMF) forum from spam. First steps in search engine optimization Simple Machines Forum: removing copyright and external links Similar profile powered by smf

In case anyone doesn't know, Simple Machines Forum - SMF for short - is, as stated on the official website, a free, professional-grade package that will allow you to organize your own online community in a few minutes. on this engine, you can look here. I myself set up my own forum on it (by the way, go to FreeForum.biz).

It doesn't matter how much or little spam appears on your forum. The important thing is that you spend your valuable time on moderation. Setting up a plugin that will do all the work for you takes a few minutes, and it will save you, in total, days and months, which will add up to the minutes you would have spent erasing messages and deleting users.

I will note that I tried to fight spammers on my own - I blocked access via IP and even subnets. It really worked, it filtered out a lot of garbage, but nevertheless, once every one or two days someone made it through. And it took quite a lot of time to replenish the database of banned IPs. I thought there must be a better way, and indeed there was!

1. Installation and configuration of Stop Spammer

In two weeks of operation, this plugin blocked 2202 fake users. Each of them would leave at least one message. The spammers show no signs of slowing down and I would spend time cleaning up my forum every day.

Instead, every few days I go to the user management page and see something like this:

I move on to the “Awaiting approval” section (these are the spammers found who are deprived of the opportunity to leave messages until their accounts are approved by the administrator). I check the “Select all” checkbox and delete them with one click:

That's it, all spam accounts go into oblivion. Let's return to our list of users:

It can be seen that the list has thinned out noticeably, but who are the rest? We select everyone and send them for verification with one button:

One “red” one appears, we immediately delete it. If you have free time, you can do others. If you don’t have time, then don’t do anything with new users - most of them will “blush” during subsequent checks. If you have time, you can go to their profiles and look - if there is a link in the signature, they will immediately be banned, these are fake accounts of spammers who will never leave a single useful message.

I told you how to use this magical plugin, now I will tell you how to install it.

Download two files: language_full.zip (this is the language pack for translating the plugin) and StopSpammer_v2_3_9.zip (the number may be different, as versions are updated). Unpack the contents of the StopSpammer_v2_3_9.zip archive into some folder. Unpack the language_full.zip archive into the same folder and agree to replace the files. Now pack our folder into a zip archive.

In the admin panel, proceed to install packages. Opposite the “Download package” inscription there is a button for selecting a file on your computer. Select our new archive (where we replaced the language file), upload it to the forum and activate the package.

That's it!

Additional configuration of the plugin occurs in the admin panel: go to

Users → Registration → Settings

You can leave the default values ​​there. There is also a field “Your API key”. Without this key, you will not be able to report new spammers (but the plugin will work and filter known spammers). If you want to get your own API key, go to www.stopforumspam.com to register, and then enter the key here. If you have not received the key yet, leave the field blank. Then the default key will be used.

2. Installation and configuration of Anti-Spam Links

Adherents of the SEO religion (you can read more about my attitude towards SEO-nists in another) have a firm conviction that by increasing the number of links to their site, they “promote” it (for some reason the idea of ​​​​creating interesting and high-quality content does not appeal to anyone doesn't come to mind). He would be a sucker, but there would be ways to extract money from him. So, some “citizens” provide services for “running” sites through forums. They create a large number of accounts on different forums and insert backlinks there in signatures and other available fields. Despite the fact that even “SEO experimenters” have already experimentally proven that these links are of zero use, some warn that you can get a ban from search engines for this, Yandex, for example, simply ignores links on ALL forums and sites where anyone can leave links. Google also has similar algorithms - ignoring links in comments, etc. But the law is not written for suckers... Therefore, we, the owners of the forums, have to reckon with the facts that “cool SEO optimizers” order a “run” of their shitty creations for a thousand rubles.

The Stop Spammer plugin will filter out a lot. But we can help him! You can take the very interest of posting links on your forum out from under spammers. This is exactly what Anti-Spam Links are for. This plugin (specific numbers can be changed in the settings) does the following:

  • those who, for example, have less than five messages, cannot leave links at all
  • those who, for example, have less than 15 messages, cannot leave active links, http:// is removed from links, and in general these links become nubolinks (newbielink)
  • those with, for example, less than 50 posts can leave active links, but all links are given a nofollow attribute.
  • Well, those who have more than 50 posts can insert the most common active links, which transfer the weight of the site to the page being linked to.

Believe me, would-be SEOs are very careful about the form in which their link ends up on the site. They'll quickly lose interest in your forum if they can't easily post their shitty links to their shitty sites there.

Yes, by the way, the above rules also work in fields such as signatures.

To install this plugin, go to its official page. Download the anti_spam_links_v1.0.1.zip archive (the number may be different). Again in the forum admin, go to install packages (as you did with the previous package) and install it. There is no language file for this package, so there is no need to unpack the archive or do anything with it.

To configure the plugin, go to the section

Configuration → Setting up mods… → Setting up modifications

If you wish, specify how many messages the user must have to upgrade his capabilities.

Conclusion

These two plugins will make your life, the forum owner, VERY much easier and will save a lot of time. However, from time to time spammers break through and, at least once a week, you need to “thin out” users and delete spam messages. Therefore, do not abandon your web resources!

Web page size and loading speed have become relevant again. Content loading speed is becoming one of the criteria for ranking search results. A lot has already been written about GZip and Deflate compression, as well as about server caching. Let's talk about headlines.

So, your ASP.NET application, among others, sends the following headers to the client (values ​​may vary):

  • Server: Microsoft-IIS/6.0
  • X-Powered-By: ASP.NET
  • X-AspNet-Version: 2.0.50727
  • (optional) X-AspNetMvc-Version: 1.0
By removing these headers we will “facilitate” the traffic by only some 100 bytes for each request, but Firstly, you should remember that these 100 bytes, when multiplied by tens of thousands of requests to your server, will play a significant role. Secondly, the absence of headers will make life more difficult for attackers who will be deprived of information about the version of your server, the ASP.NET version and the platform in general.

Now to the point.

Remove the X-AspNet-Version header.

Everything is simple here. Just add the line to web.config:
< httpRuntime enableVersionHeader ="false" />

Remove the X-AspNetMvc-Version header

If you are using the ASP.NET MVC framework, add this code to the Application_Start handler in the Global.asax file:
MvcHandler.DisableMvcResponseHeader = true ;

Removing the X-Powered-By header

Launch the IIS administration snap-in and go to the “service” tab in the website properties:

If you have IIS7, everything is similar:

Removing the Server header

Everything is more complicated here. This header is added by IIS itself, so you will have to clean it out manually, using a small hack, again, in Global.asax, in the Application_PreSendRequestHeaders handler:
//everything ingenious is simple
HttpContext .Current.Response.Headers.Remove("Server" );

Unfortunately, this will only work with the Integrated Pipeline Mode setting enabled - read - “only in IIS7”. For IIS6 you will have to resort to using a free utility from Microsoft -

Everyone knows that I simply cannot live without Joomla, but, in my opinion, there is no good forum for components. That's why I work with forum engines. One of the new ones that I just recently started using is Let's start a new SMF category with hopefully useful stuff. We start small, and as beginners it’s very useful.

First steps in search engine optimization Simple Machines Forum: removing copyright and external links

Let me make a reservation right away that I only work with smf 2 and this article will relate specifically to this version of the free forum engine.

And so, regular readers know how much I don’t like putting “10” external links to the official websites of engines, including forum ones. That is why, first of all, we remove the copyright and as many as 4, attention 4 external links of the form " SMF 2.0.2 | Simple Machines | SMF © 2011 | XHTML"! To do this, connect to the site via FTP forum/Themes/ name of your theme/ and edit the file index.template.php. Naturally, at the very bottom there is a code (about line 330) that displays external links that we don’t like so much. Therefore we delete: "

  • ", theme_copyright(), "
  • " And "
  • ", $txt["xhtml"], "
  • ". It’s all so simple and easy. In the coming publications, expect new materials on promoting and optimizing forums on SMF/