From 886db5e98a1ac7fd969766439d0d8dc15ece4e41 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 4 Dec 2019 08:22:08 +0100 Subject: [PATCH] Add user agent --- is-wordpress | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/is-wordpress b/is-wordpress index 978725e..7ebb70d 100644 --- a/is-wordpress +++ b/is-wordpress @@ -17,7 +17,7 @@ method3=false ## # Local ariables -ROBOTS_TXT="$(curl -L -s $DOMAIN/robots.txt)" +ROBOTS_TXT="$(curl -L -s -A 'Firefox' $DOMAIN/robots.txt)" SEARCH_DISALLOW="wp-admin" DISALLOW_STRING="Disallow:" @@ -31,7 +31,7 @@ fi ## # Local variables -HEADERS_LOGIN="$(curl -L -s -I $DOMAIN/wp-login.php)" +HEADERS_LOGIN="$(curl -L -s -I -A 'Firefox' $DOMAIN/wp-login.php)" COOKIE_SEARCH_LOGIN="set-cookie: wordpress_test_cookie=WP+Cookie+check" # Check if contains cookie in HEADERS, ignore case @@ -44,7 +44,7 @@ fi ## # Local vriables -HTML="$(curl -L -s $DOMAIN)" +HTML="$(curl -L -s -A 'Firefox' $DOMAIN)" REGEX_SEARCH_GENERATOR="" # Check if contains meta generator WordPress