This repository was archived by the owner on Apr 3, 2018. It is now read-only.
File tree Expand file treeCollapse file tree 1 file changed+23
-0
lines changedFilter options
+23
-0
lines changed Original file line number Diff line number Diff line change
@@ -107,6 +107,9 @@ percentageLogOutput=${logOutput}percentage/
107
107
# Output of execution Time log
108
108
executionLog=${logOutput}execution.log
109
109
110
+
# Ouput of no referer log
111
+
noRefererLogOutput=${logOutput}noReferer/
112
+
110
113
# Output of inactive domain
111
114
outputInactiveHost=${inactiveHostsDir}${hostsDefault}
112
115
@@ -626,6 +629,23 @@ errorHandle()
626
629
fi
627
630
}
628
631
632
+
############################## No Referers Log #################################
633
+
# Used to generate the logs
634
+
#
635
+
# @CalledBy getReferer
636
+
################################################################################
637
+
noRefererLog(){
638
+
if [[ ${outputLogs} == true ]]
639
+
then
640
+
# We save the output of the captured date into log directory
641
+
printf "=%.0s" {1..100} >> ${noRefererLogOutput}.${domainExtension}
642
+
printf "\nNo referer found for: %s domains\n" "${domainExtension}" >> ${noRefererLogOutput}.${domainExtension}
643
+
printf "Tested domain: %s\n" "${initialDomain}" >> ${noRefererLogOutput}.${domainExtension}
644
+
printf "=%.0s" {1..100} >> ${noRefererLogOutput}.${domainExtension}
645
+
printf "\n" >> ${noRefererLogOutput}.${domainExtension}
646
+
fi
647
+
}
648
+
629
649
############################### Get Referer ####################################
630
650
# Used to generate the report issue url
631
651
#
@@ -703,6 +723,9 @@ getReferer(){
703
723
# We empty the referer variable
704
724
referer=''
705
725
726
+
# We log the issue
727
+
noRefererLog
728
+
706
729
# We handle error & check if server is up
707
730
errorHandle 'Error'
708
731
fi
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4