fingerprint.go 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package data
  2. import (
  3. "time"
  4. "git.scraperwall.com/scw/geoip"
  5. "git.scraperwall.com/scw/grs"
  6. )
  7. type Fingerprint struct {
  8. // ID bson.ObjectId `bson:"_id,omitempty" json:"_id"`
  9. Remote string `bson:"remote" json:"remote" form:"remote"`
  10. Url string `bson:"url" json:"url" form:"url"`
  11. UserAgent string `bson:"user_agent" json:"user_agent" form:"user_agent"`
  12. Adblock bool `bson:"adblock" json:"adblock" form:"adblock"`
  13. AvailableResolution []int `bson:"available_resolution" json:"available_resolution" form:"available_resolution"`
  14. Canvas string `bson:"canvas" json:"canvas" form:"canvas"`
  15. ColorDepth int `bson:"color_depth" json:"color_depth" form:"color_depth"`
  16. CpuClass string `bson:"cpu_class" json:"cpu_class" form:"cpu_class"`
  17. DoNotTrack string `bson:"do_not_track" json:"do_not_track" form:"don_not_track"`
  18. Fingerprint string `bson:"fingerprint" json:"fingerprint" form:"fingerprint"`
  19. HasLiedBrowser bool `bson:"has_lied_browser" json:"has_lied_browser" form:"has_lied_browser"`
  20. HasLiedLanguages bool `bson:"has_lied_languages" json:"has_lied_languages" form:"has_lied_languages"`
  21. HasLiedOs bool `bson:"has_lied_os" json:"has_lied_os" form:"has_lied_os"`
  22. HasLiedResolution bool `bson:"has_lied_resolution" json:"has_lied_resolution" form:"has_lied_resolution"`
  23. IndexedDb int `bson:"indexed_db" json:"indexed_db" form:"indexed_db"`
  24. JsFonts []string `bson:"js_fonts" json:"js_fonts" form:"js_fonts"`
  25. Language string `bson:"language" json:"language" form:"language"`
  26. LocalStorage int `bson:"local_storage" json:"local_storage" form:"local_storage"`
  27. NavigatorPlatform string `bson:"navigator_platform" json:"navigator_platform" form:"navigator_platform"`
  28. Plugins []string `bson:"regular_plugins" json:"regular_plugins" form:"regular_plugins"`
  29. Resolution []int `bson:"resolution" json:"resolution" form:"resolution"`
  30. SessionStorage int `bson:"session_storage" json:"session_storage" form:"session_storage"`
  31. TouchSupport []interface{} `bson:"touch_support" json:"touch_support" form:"touch_support"`
  32. WebGl string `bson:"webgl" json:"webgl" form:"webgl"`
  33. TimeZoneOffset int `bson:"timezone_offset" json:"timezone_offset" form:"timezone_offset"`
  34. CreatedAt time.Time `bson:"created_at" json:"created_at" form:"created_at"`
  35. Source string `bson:"source" json:"source" form:"source"`
  36. XForwardedFor string `bson:"x_forwarded_for" json:"x-forwarded-for" form:"x_forwarded_for"`
  37. XRealIP string `bson:"x_real_ip" json:"x-real-ip" form:"x_real_ip"`
  38. XScwIP string `bson:"x_scw_ip" json:"x-scw-ip" form:"x_scw_ip"`
  39. Grs *grs.GRS `bson:"grs" json:"grs" form:"grs"`
  40. GeoIP *geoip.GeoIP `bson:"geoip" json:"geoip" form:"geoip"`
  41. }