Script updated.

What is new in this update 6.6.2013 :

Added javascript recognition of screen size and browser plugins.Now is easier to detect if someone is faking User Agent.

details:

This is regular log, from my Firefox browser and normal computer

6/6/2013 01:48 PM | UA: Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0 | IP: 186.6.37.247
HOST: 247.37.6.186.f.dyn.codetel.net.do | REFERRER: (empty) | TOR: False | GET data: [] | POST data: []
Client-side data: OS: Win32 | Screen Resolution: 1525x858 | Installed Plugins: Shockwave Flash, IE Tab plugin, Silverlight Plug-In, Google Update, Shockwave for Director
-----

So, even if I change user agent to looks like I am coming from mobile browser and device, it will still read data from real browser and real device behind. Unfortunately there is no way to get OS details with javascript, but from user agent only and that can be faked. With browser details and screen size, it need extra effort to fake it, effort that bots will not do, of course.

This is faked User Agent visit from mobile device

6/6/2013 01:49 PM | UA: Mozilla/5.0 (X11; U; Linux arm7tdmi; rv:1.8.1.11) Gecko/20071130 Minimo/0.025 | IP: 186.6.37.247
HOST: 247.37.6.186.f.dyn.codetel.net.do | REFERRER: (empty) | TOR: False | GET data: [] | POST data: []
Client-side data: OS: | Screen Resolution: 1525x858 | Installed Plugins: Shockwave Flash, IE Tab plugin, Silverlight Plug-In, Google Update, Shockwave for Director

real data detected. Good to know.

================================================== =
Just a short reminder how to work with script:

How to use script:

- Open script in good text editor, put your websites (money links), your email account where to receive logs (optional) and check options - with switches true/false you can enable/disable specific functions in script and make it to work just how you want and need.
NOTE: - be careful while editing around links, one missing or added comma, apostrophe or bracket can make error.
- Upload script to your FTP server and send traffic to it , script is currently named june-6.php but you can rename it to somethingelse.php and send traffic from twitter and/or other sources to www.yourthrowawaydomain.com/somethingelse.php

How it works:

- Script is separating traffic by type of visits - mobile users will be redirected to mobile sites and offers, desktop/laptop visitors to regular sites and offers, and bad bots/ip's/hosts will be redirected to safe sites, random news sites
- All you have to do is to send traffic to the script; traffic will be checked for all bad or undesired visits looking in IP / Bot / Host lists in the script. This is database that is good for my needs but if you want something else to allow or redirect from your site, you can remove or add your data.

Functions:

- no-cache headers that are rotating "time in past" data on each visit | prevent from search engines cashing and gives randomness / reduce footprints
- mobile recognition, optional usage (if you don't want to redirect mobile users, switch true to false)
- IP recognition works with ranges (123.123.123.0-123.123.123.255) and / or CIDR (123.123.123.0/24) format
- extensive list of IP's / Bots / Hosts (lists of crawlers, bots and IP's from various forums and sites for tracking bots, botnets, malware domains etc plus my findings)
- logging of Date / Time / User Agent / IP / Host / Tor and Proxy access / GET and POST requests / Screen Resolution, OS, Browser plugins
- logs separated in 3 files: 1. regular desktop visitors, 2. mobile visitors and 3. bots/ip's/hosts | much easier to see number of real visitors
- send logs to hotmail, gmail or domain email by your choice. Timeframe is adjustable, currently default report emailing is set to 6 hours
- option to send visitors coming with specific referrers to safe sites (random news sites)
- option to send visitors coming with specific referrers to specific sites by your choice
- switch to use script with curl fetch OR with classic 301 redirect / Curl will show same domain where script is but other website in it (websites by your choice), 301 redirect is doing full redirect to another domain
- script can erase itself after X hours or days from the server (optional, if you are doing some funny stuff)
Hidden Block (you must be registered and have 1 posts):
You do not have sufficient rights to see the hidden data contained here.