I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Verified Commit 5f74afc0 authored by xalloc xzal's avatar xalloc xzal
Browse files

Really are there websites that use user agent protection?

parent 43079380
No related branches found
No related tags found
No related merge requests found
...@@ -86,6 +86,10 @@ die "Give a file\n" unless defined $file; ...@@ -86,6 +86,10 @@ die "Give a file\n" unless defined $file;
my $url_to_upload = $DEFAULT_SERVER . "/upload.cgi"; my $url_to_upload = $DEFAULT_SERVER . "/upload.cgi";
my $req; my $req;
# Fake user agent
$ua->agent("Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0");
# check if server is running lainsafe # check if server is running lainsafe
if(!$ua->get($url_to_upload)->is_success) if(!$ua->get($url_to_upload)->is_success)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment