Remove the /ip_addresses page. This page allowed moderators to search users by IP, and to see recent activity tied to an IP. However, it was limited to IPs tied to uploads, comments, dmails, artist edits, note edits, and wiki edits. Remove this page because it was limited in scope and because there are better ways of doing what it did. The /user_events page is better at catching sockpuppets because it tracks IPs for every login, not just for certain types of edits. And the /user_actions page is better at monitoring user activity because it shows all activity associated with an account, not just for certain types of edits. Removing this allows us to drop IP addresses from all tables besides the user_events table. This is good because these IPs are no longer necessary for any purpose, and because storing them forever is a liability.
12 lines
271 B
Ruby
12 lines
271 B
Ruby
# frozen_string_literal: true
|
|
|
|
class IpAddressesController < ApplicationController
|
|
respond_to :html, :xml, :json
|
|
|
|
def show
|
|
@ip_address = authorize IpAddress.new(ip_addr: params[:id])
|
|
@ip_info = @ip_address.ip_addr.ip_info
|
|
respond_with(@ip_info)
|
|
end
|
|
end
|