DeDos - Anti DOS for spam bots/scrapers/tors

xF1 Add-on DeDos - Anti DOS for spam bots/scrapers/tors 2.00.07

No permission to download
Compatible XF Versions:
  • 1.3
  • 1.4
Visible Branding:
No
This plugin is included in
i) Paid (unbranded) Tac Anti Spam Collection
This plugin is not included in the free Tac Anti Spam Collection


What this plugin does:
  • lowers bandwidth & query resource usage from spam bots
  • lowers bandwidth & query resource usage from scrappers
  • lowers bandwidth & query resource usage from human simple DOS attacks (but humans are not what this add-on is targeting)
  • avoids catching spiders/crawlers
Options
  • Dynamically synchronise the .htaccess file, for a truly 0 query method of stopping bots from hammering
  • JavaScript detection to remove users from the cache (avoiding false positives)
  • Turn Off DeDos for logged in users.

This plugin primarily targets Spam Bots/Scrapers with high resource usage. When this plugin is used in combination with FoolBotHoneyPot, a large percentage of spam bots are detected and cached. Once cached, these spam bots then use limited sever resources.

FoolBotHoneyPot: Detects bots that attempt to register, and then caches them.
DeDos: Detects bots that attempt to quickly Login/Register/Scrape pages over and over and then caches them.

By default, the ACP options for DeDos are set up so that it should be very rare that humans will even see the warning page (if at all, unless they are malicious), but it will still catch spam bots that would have used significant resources.

- Please note, this is not a preventive measure for DDos attacks, Distributed Dos attacks (those from many thousands of IP addresses usually from botnets) should be prevent with hardware, not software.


Dos Attacks
Many spam bots, scrapers and some users will often hit your site many times within a small time range. When they do this, they can take up a significant amount of bandwidth (from downloading page content over and over) and can also hit your database with many queries and take up server resources (from hitting pages with a large number of queries over an over). Spam bots and scrapers do not cache pages, so each time they visit, the full content of the page is often downloaded.

- DeDos reduces the number of times this is possible, by default, if the user hits 6 pages or more within 7 seconds, a friendly user message is displayed to the user. This friendly message then counts down and redirects them to the original page. If they continue to hit more pages after seeing the message (bots will, humans shouldn't), by default if they hit 8 pages or more within seven seconds, they are locked out of the site and their IP is cached. From then onwards, that IP will only see a 401 Unauthorised page (and only take up 1 query instead of 15- 25 queries).

Friendly User Dos Message if the user hits 6 pages or more within 7 seconds:

xenforo_com_community_attachments_upload_2014_6_8_17_51_57_png_75429__.png



After further attempts and hitting 8 pages of more within 7 seconds, this message is all they will see site wide (their IP is cached):

xenforo_com_community_attachments_upload_2014_6_8_17_52_21_png_75430__.png



Spam Bots
When spam bots visit your site, they will often unintentionally Dos attack your site. They do this by hitting many pages in a very small time frame. For instance, many bots may think they have already registered with several accounts (or some of their accounts), they then hit the login page with various user accounts to see which were successful (if any). They can hit the login page 10 times in just a few seconds, if many spam bots do this with many attempts, this can have an impact on your resources. They will often also jump from page to page (finding relevant forums to post in to) and attempt to register many times within a small time frame. All of these attempts can have an impact on resources (particularly if many spam bots do this and you have limited server resources)

Scrapers
Scrapers are bots that go from page to page either looking for relevant threads/posts to automate against, often leaching the data for their own purposes including looking for email addresses they can retrieve and spam. Often scrapers will not care how malicious they are to your site and can go though thousands of pages (taking up gigs of data) in a very small time frame

Human Attacks
Some human users will Dos attack your site by simply pressing ctr-F5 (refresh) over an over. This is a very simple Dos attack and the impact can be reduce with DeDos. However, if you notice a human doing a simple DOS attack from the logs, preventing an IP address with htaccess / CPanel should provide earlier protection (this plugin focuses on spam bots/scrappers, where continuously updating htaccess/CPanel is tiresome)

Spiders/Crawlers
Spider/Crawlers can hit many pages quite quickly, however this type of bot detection is avoided with DeDos. DeDos uses the XenForo core methods to avoid detecting these types of bots and also looks at the User Agent. Spam Bots will almost always disguise their selves as normal browser users (I have never seen a case in recent years where they haven't), spiders/crawlers will always exposes their selves with the user_agent (user_agent is always logged to confirm spiders have not been stopped). If the user agent does not look like a browser, the dos is ignored (since it could be an unknown spider/crawler). The user_agent of each Dos attempt is always shown in the logs

Logs:

upload_2014-6-8_17-53-50.png upload_2014-6-8_17-55-29.png upload_2014-6-8_17-56-40.png upload_2014-6-8_18-10-43.png

ACP options:

upload_2014-6-8_17-53-50.png

Logs are automatically cleaned up weekly, so no more than 3 months of logs are stored (preventing the logs from building up)


Installation:
You should now have the following folder structure:
http:// www. yourforum.com/library/Tac/DeDos
  • Go to ACP -> Add-ons -> Install Add-on -> Install from file on server
  • Install from file on server: "library/Tac/DeDos/addon-DeDos.xml"
  • Set options in the administration control panel ACP>>Home>>Options>>DeDos
Upgrade:

1. Unzip the following zip file, and copy over the original files with the new versions (just copy over the entire DeDos Folder)

2. From within the Admin Control Panel: yourforum/admin.php?add-ons/
find DeDos, and select the options
Control >> Upgrade

3. Upgrade from file on server: library/Tac/DeDos/addon-DeDos.xml

Notes:
  • 1 payment for this add-on covers one install on one forum
  • Do not use this add-on on warez or illegial sites, doing so may prevent you from using this add-on and you will not be allowed further updates / other plug-in resources
  • If you have not paid for this add on, please do not use it on your forum, doing so may prevent this add-on from working
Warning: If you decide to test this plugin on your own forum, and if you decided to refresh the page more times after seeing the warning message, you will be locked out of your entire site (including the ACP area). In such cases, you can turn off the DeDos cache by turning on debug mode, then login to your ACP and remove your IP from the cache, you can then turn debug mode back off.
Author
Admin
Size
81.8 KB
Extension
zip
Downloads
12
Views
2,076
First release
Last update

More resources from Admin

Similar resources

StopHumanSpam - Anti Human Spam Admin
Set conditions signature/links/homepage & stop post creation for banned words
StopHumanSpam - Anti Human Spam Admin
Set conditions signature/links/homepage & stop post creation for banned words
TAC(Tenants Anti-Spam Collection) - Anti-Spam Complete Collection Admin
Anti Bot, Anti Country, Anti human, Api, Captcha ... Anit SPAM Collection!
731Threads
2,287Messages
63,791Members
supercLatest member
Back