Newer
Older
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
Route::post('/{url}', function ($url) {
abort(405);
Route::get('healthz', function () {
return response('', 200)
->header('Content-Type', 'text/plain');
});
return view("development");
return redirect("https://metager.de");
}
});
Route::get('index.css', 'BrowserVerification@verifyCss');
$validatedData = $request->validate([
'url' => 'required|url|max:255',
]);
$url = $request->input('url', 'https://metager.de');
$url = base64_encode(str_rot13($url));
$target = urlencode(str_replace("/", "<<SLASH>>", $url));
return redirect(action('ProxyController@proxyPage', ['password' => $password, 'url' => $target]));
Route::get('{password}/{url}', 'ProxyController@proxyPage')->middleware('throttle:60:1')->middleware('checkpw');
Route::get('proxy/{password}/{url}', 'ProxyController@proxy')->middleware('browserverification')->middleware('checkpw:true');