Add "nofollow noopener noreferrer" to all links
Old iOS 12 devices will pass the Referer HTTP header to the site user clicks. Websites will know those traffic come from Whoogle search. Adding "nofollow noopener noreferrer" solves the issue.
This commit is contained in:
parent
3ec1f46fe8
commit
55aa2e815c
|
@ -153,6 +153,7 @@ class Search:
|
|||
self.request_params.to_dict(flat=True).items()
|
||||
if self.config.is_safe_key(k))
|
||||
for link in formatted_results.find_all('a', href=True):
|
||||
link['rel'] = "nofollow noopener noreferrer"
|
||||
if 'search?' not in link['href'] or link['href'].index(
|
||||
'search?') > 1:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue
Block a user