PHP code example of seanhayes-com / laravel-probe-detection
1. Go to this page and download the library: Download seanhayes-com/laravel-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 / laravel-probe-detection example snippets
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();
});