PHP code example of seanhayes-com / laravel5-probe-detection
1. Go to this page and download the library: Download seanhayes-com/laravel5-probe-detection library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
seanhayes-com / laravel5-probe-detection example snippets
SeanHayes\Probe\ProbeServiceProvider::class,
Torann\GeoIP\GeoIPServiceProvider::class,
'Probe' => SeanHayes\Probe\ProbeFacade::class,
'GeoIP' => Torann\GeoIP\GeoIPFacade::class,
Route::get('/wp-login.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::get('/{name}/wp-login.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::get('/wp-admin/', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::get('/wp-content/', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::get('/{name}/wp-admin/', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::get('/xmlrpc.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::get('/wp-cron.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::post('/wp-login.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::post('/{name}/wp-login.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::post('/wp-admin/', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::post('/{name}/wp-admin/', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::post('/xmlrpc.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
Route::post('/wp-cron.php', function () {
\SeanHayes\Probe\Probe::logRequest();
});
use SeanHayes\Probe\Probe;
Probe::logRequest();
bash
php artisan vendor:publish --provider="SeanHayes\Probe\ProbeServiceProvider" --tag="migrations"
bash
php artisan migrate
bash
php artisan vendor:publish --provider="SeanHayes\Probe\ProbeServiceProvider" --tag="config"