{ "info": { "author": "Nick Kelly", "author_email": "nick.kelly@tivix.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "Operating System :: OS Independent", "Topic :: Software Development" ], "description": "django_spam\n===========\n\n![alt text](https://media.giphy.com/media/Mr8Gr9ejR0OpW/giphy.gif \"django_spam\")\n\nInspired by this Nick Craver tweet https://twitter.com/nick_craver/status/720062942960623616\n\nWe all hate bots, lets admit it. Especially the ones that try to gain access to our most secret endpoints. Well we have an easy\nsolution for your django application. django_spam simply adds common admin urls to url conf so when bots (or human\nfor that matter) try and access them, they will get redirected...\n\n\n[![Build Status](https://travis-ci.org/nickatnight/django-spam.svg?branch=master)](https://travis-ci.org/nickatnight/django-spam)\n[![Coverage Status](https://coveralls.io/repos/github/nickatnight/django-spam/badge.svg?branch=master)](https://coveralls.io/github/nickatnight/django-spam?branch=master)\n\n\n| | Django 1.8 | Django 1.9 | Django 1.10 | Django 1.11 | Django 2.0 | Django 2.1 |\n| -- | -- | -- | -- | -- | -- | -- |\n| Python 2.7 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | | |\n| Python 3.4 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | |\n| Python 3.5 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |\n| Python 3.6 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |\n\nTo install:\n```python\npip install django-spam\n```\n\nAdd to apps list:\n```python\nINSTALLED_APPS = [\n '...',\n 'django_spam',\n '...'\n]\n```\n\ndjango_spam ships with some default endpoints bots might try to hit. If you would like to add extra routes, simply add\na ``SPAM_ROUTES`` variable to your settings file that contains a list of extra endpoints you would like\nto add. *no leading slashes*\n```python\nSPAM_ROUTES = [\n 'admin.php',\n 'admin/login.php',\n 'administrator/index.php',\n 'index.php',\n '...',\n]\n```\n\nThe same goes for ``SPAM_URLS`` you would like traffic to get forwarded to. Add some fun urls:\n\n```python\nSPAM_URLS = [\n # 10 hours of Donald Trump saying bing bing bong\n 'https://www.youtube.com/watch?v=UKbOqEk6rsk',\n # 10 hours of Darth Vader breathing\n 'https://www.youtube.com/watch?v=un8FAjXWOBY',\n '...',\n]\n```\n\nInclude ``django_spam.urls`` to root url file:\n```python\n\n'...'\nurl(r'', include('django_spam.urls')), # for Django >= 2.0: path('', include('django_spam.urls')),\n'...',\n```\n\nIf for some odd reason you need to exclude routes, define ``EXCLUDED_ROUTES`` in settings. *no leading slashes*\n\n```python\nEXCLUDED_ROUTES = [\n 'admin.php',\n 'index.php'\n]\n```\n\n@Tivix", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/Tivix/django-spam", "keywords": "django spam", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-spam", "package_url": "https://pypi.org/project/django-spam/", "platform": "", "project_url": "https://pypi.org/project/django-spam/", "project_urls": { "Homepage": "http://github.com/Tivix/django-spam" }, "release_url": "https://pypi.org/project/django-spam/0.3.2/", "requires_dist": null, "requires_python": "", "summary": "Redirecting bots to utilize their time better...", "version": "0.3.2" }, "last_serial": 5112017, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "63a7223bd649e7c86e47740df2e01d7d", "sha256": "1538aad75f49477db029d78bfb7849455d671c894e5bd621de44403baed26797" }, "downloads": -1, "filename": "django_spam-0.1.0.tar.gz", "has_sig": false, "md5_digest": "63a7223bd649e7c86e47740df2e01d7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4547, "upload_time": "2017-05-05T23:28:21", "url": "https://files.pythonhosted.org/packages/8c/26/4a27520923f2eaaab239ce7f9258ddf6a17953dc645af37d6f3429180885/django_spam-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "edba02d809abb1a8e5c2f5dda6973f2d", "sha256": "4a6c1c303085ac9f4f1705087e4f93fae13a42a6f3782d5560dc809f7f20a55f" }, "downloads": -1, "filename": "django_spam-0.2.0.tar.gz", "has_sig": false, "md5_digest": "edba02d809abb1a8e5c2f5dda6973f2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5753, "upload_time": "2018-05-03T08:06:57", "url": "https://files.pythonhosted.org/packages/d7/7b/76ac5150dae67f0e9bfb40facbab402e6e4c9dd8bf5a57ba806fb875b34d/django_spam-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "ad472b3444b2744952b4552f8f574c3f", "sha256": "d74ebae8ca6cd8c3875ca5d445dd15c8bdd822f67f747f4fc34ff61abff445bf" }, "downloads": -1, "filename": "django_spam-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ad472b3444b2744952b4552f8f574c3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5880, "upload_time": "2018-05-03T09:08:55", "url": "https://files.pythonhosted.org/packages/1e/bd/ed62e649416eb6d26a06ec94674b2548b414328b5778a8c88af2bb308178/django_spam-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "46c139c9ba06456171e4d938a341b8b6", "sha256": "579afe7eb9ccddfffe1b39cb5418bf1d0faf5a477d924773a5792ddc077ca55d" }, "downloads": -1, "filename": "django_spam-0.3.1.tar.gz", "has_sig": false, "md5_digest": "46c139c9ba06456171e4d938a341b8b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5966, "upload_time": "2018-05-04T09:45:19", "url": "https://files.pythonhosted.org/packages/83/ec/92f0cdf1ea55c85c138151040f534b23f43fbf9507172c9cd374a972a028/django_spam-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "fa6805bd5116620a4fe689cb2f3b4f3c", "sha256": "00a194c8c14c35f2be0ae37b6537b71f5c7fc6a6be188646fbc186ec6e5cfa37" }, "downloads": -1, "filename": "django_spam-0.3.2.tar.gz", "has_sig": false, "md5_digest": "fa6805bd5116620a4fe689cb2f3b4f3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5995, "upload_time": "2019-04-08T05:30:38", "url": "https://files.pythonhosted.org/packages/ba/9f/1d7952d1963e05657103fd98ed755bb21e0dec777ff09b49f4ce0267c4a3/django_spam-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fa6805bd5116620a4fe689cb2f3b4f3c", "sha256": "00a194c8c14c35f2be0ae37b6537b71f5c7fc6a6be188646fbc186ec6e5cfa37" }, "downloads": -1, "filename": "django_spam-0.3.2.tar.gz", "has_sig": false, "md5_digest": "fa6805bd5116620a4fe689cb2f3b4f3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5995, "upload_time": "2019-04-08T05:30:38", "url": "https://files.pythonhosted.org/packages/ba/9f/1d7952d1963e05657103fd98ed755bb21e0dec777ff09b49f4ce0267c4a3/django_spam-0.3.2.tar.gz" } ] }