67.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

04-25-2013, 07:51 PM
Post: #1
[GET] Aprotect script - Protect your sites from bots, crawlers etc
Principle and database of bots/ip's/hosts is the same like in free cloak/redirect script in other section on this forum.

It is modified to be "attached" directly to any .php site, CMS or platform - wordpress, joomla, eCommerce sites etc.

For twitter and other sources where domain ban is guaranteed (if you are spamming) you will still need throwaway domain and regular cloak/redirect script on it.

BUT - for all other traffic that is coming to site directly (not over throwaway domain) you should include some filters.
Comment spammers, domain and seo crawlers, hacks and login attempts - to name a few. Checking logs created by script is very recommended step for proactive protection and updating database, if you are not checking what is blocked and what is not blocked you will not know what is going on around your site and what kind of traffic you are receiving.

----------------
Installation:
----------------
How to install script on self-hosted wordpress site/blog:


- Folder named aprotect copy to root of domain folder (where the wp-admin, wp-content, wp-includes are located)
- Still in root folder, open file wp-blog-header.php in good text editor and include code below immediately after <?php


require_once $_SERVER['DOCUMENT_ROOT'].'/aprotect/aprotect.php';


and save it.

By default, all traffic coming to site will be logged and logs will be emailed every 12 hours to email that you put in script (if you need logs). You can change defaults to more or less time, or to disable logs (not recommended).
Looking in logs you can figure out what is useful for you and what is hammering site, downloading/crawling daily and you can add or remove protection how you like.

------------------------------

How to install script on any php based site:

- Include code in header or file that is included in every page (very first line in file)

<?php require_once $_SERVER['DOCUMENT_ROOT'].'/aprotect/aprotect.php'; ?>

- If site/template/landing page doesn't have general header file, you need to include code manually in every page that you need to protect.


.htaccess installation method:

There is a way to prepend code to any php file so manual placing of code is not necessary, but it does not work on all hosting servers. What I have tested is Mediatemple and Hostgator, and it works . Not sure for others, feel free to report where else works.

- put file aprepend.php into root of domain (where aprotect folder is)
- open .htaccess and add the code below (you will need to put full path to file that is correct for your domain)

this is for MediaTemple

<IfModule mod_php5.c>
php_value auto_prepend_file /home/123456/domains/yourdomain.com/html/aprepend.php
</IfModule>


this is for HostGator


<IfModule mod_php5.c>
php_value auto_prepend_file /home/youraccount/public_html/yourdomain.com/aprepend.php
</IfModule>


and save.

thats it. To check if the script is working visit your site few times and check for logs in aprotect folder.


Download:

Magic Button :
Code:
http://www.mediafire.com/?16wve94vs1ft7fd

Virus Total:
https://www.virustotal.com/en/file/0d6b1...366868932/


SHA256:0d6b1a6cd09c8f886d21ab3987f34f9b0239bd5c7ded3d0f272d94db84a02434
File name:Aprotect Files.zip
Detection ratio:0 / 46
Analysis date:2013-04-25 05:48:52 UTC
( 0 minutes ago )

Thanks to TZ Smile




79.gif