Giter VIP home page Giter VIP logo

madsoliver / blackholebots Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getdatakick/blackholebots

0.0 0.0 0.0 403 KB

Free module for prestashop and thirtybees platforms that will automagically ban bots that don't follow robots.txt instructions

Home Page: https://www.getdatakick.com/extras/blackholebots/?utm_source=github&utm_medium=web&utm_campaign=github

PHP 87.62% HTML 3.49% CSS 1.49% Smarty 3.63% Shell 3.77%

blackholebots's Introduction

Blackhole for Bad Bots

cover

This is very simple free module for prestashop and thirtybees platforms. It is based on a very simple idea:

  1. you instruct all robots visiting your website NOT to open specific url
  2. this module will add hidden link from all pages on your website to this forbidden page. This link is perfectly visible to all robots, but normal visitors will not notice it at all (without looking into web page source code)
  3. when anyone access this forbidden page, his IP address will be immediately added to blacklist
  4. blacklisted visitor are forbidden from viewing content from your website
  5. shop administrator is notified about new entries to blacklist. They will receive email with WHOIS information about the visitor - his IP address, location, network, etc.

And that's it. This trap will not affect any good robots who are following robots.txt directives. On other hand, all bad bots and crawlers will be eventually trapped and forbidden from ever collecting information from your site again.

Module activation

  1. edit robots.txt file in the root directory

Before you install this module, you need to edit your robots.txt file, and add following three lines

User-agent: *
Disallow: /blackhole/
Disallow: /modules/blackholebots/blackhole/
  1. install module

  2. optionally, you can test it by navigating to http://www.yourdomain.com/blackhole/. You should be banned from your own site. To lift the ban, reset module from your back office.

Moderation

At the moment there isn't any UI to manage blacklist. If you want to remove some IP address from blacklist, you have to make manual changes in database table called PREFIX_blackholebots_blacklist

Compatibility

  • thirtybees
  • prestashop 1.6.x.x
  • prestashop 1.7.x.x

Author

Petr Hučík - datakick

blackholebots's People

Contributors

tyruk avatar cienislaw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.