1π
β
I would create a table that has entries/ips you want to ignore.
or if you think it wonβt change much, just us a variable
def index(request):
from ipware.ip import get_ip
ip = get_ip(request)
....
if ip not in LIST
(save to table)
or you could use some filter logic on the dtabase/table (depending on what you are using to save the data?)
π€warath-coder
Source:stackexchange.com