24

I'm managing a photo sharing website and as an admin I'd like to have a button that checks the origin of the uploaded photo (for the sake of copyright infringements).

My idea was to simply launch a URL to the Google reverse image search service, passing in my image URL as a parameter in the URL. I have no need for automated back-end integration, I'll just click that button for suspicious images and check the results manually and visually.

As the Google Image Search API is deprecated, I'm trying to figure out how these reverse URLs are encoded. Here's an example:

https://www.google.com/search?tbs=sbi:AMhZZiu4Yrek2BpiwyGk9IsHVNZf-iYz5hbuYqkEQltbV2v9Gw5Jh5d9Od1vKAHMAHIwCy3Z5bb5XgsTSfSRp--8NvG9BGxSNEFkd5tjHKH3EQHUTkOL_1MaFPK9DYRbNERlhG0bem6Lic1U8KN0TbtjfaKqVpKOnOgveoygHHN6xCiABQktN5AdZOs8F5BrXtIEZZf-CpVj_1Fd09ffaN9JE7hdEZPeM804rQgLP9UZe7QPIDG4Pn50Pcl5v1QgFUG6HO4U2Yhc54whAvC8SpyD1-hdCyDCa0rUn1E4KZrQFbIB6kodhQbOZXQxYdaQsY74g54jxsgtZeKt9rbhDzCMRrNkSsJwMlfv6NF5H4QPR8coHogn9nKkLUi3PgcJ-1rehd0EDssook5IPRVq5hH84j6vDbq0kbUtYxUkJwXm3_1C6jn-4hiR-W8c19HM63tcIIohTfmrca-kyN4rhHlkEjlL1684AICeyml8jx1rbBxCtiQcedyDKWiFxCbNpTUZ2z-Psx7EAQJ9AKu1BeRdi-7d5GbVpNwq_1h_13jBynarvhfqyPje7ZolbIwVoQt66ctO9I8OtVj1LAfjMG8AE3Id1v2e0FVfMZCN_1r_178KbudnT61GQYGiy9AkKAJ509Uy7flMlvPAVzkV2QTHqrL46Vh9rcy2kExYXzt_1pcq4AApKzCtRhaSazHx8V0gQrmopqRA9kmpto2yFOgTR0E8EAPNU-egb4dQC4FIZSBGTOKb2eIdjqEybZlhjcuoGIriKYrgWIWyBhfFJ2MIOTYMGRpvNytugXhkR9Cd9g2Xv37bVf3NedpfXbqOJKFlHi4KmhGK7PrCRcbCo18WxTQuzrr6xJvrdr0i3tPWYVOcXjJB5K3mBZFcDP90nsYLOU1TE1nVYFVmMVCK2kdxeUZmIYb_1S3XGZyz_1AkZkgk0jzM6f5dGHz4rVOEmBPSs-mjLDf67-4w9Ro7JZGg2HDDGewrWzaJhbQfGxuBE8MgAts5aPTDuqtUADYfxkubQmDxmbih26-ypk9EIbo6FNLie_1lzenC442iBZadZOwcBJI6h7o8zBgQPaJkKsr_1lILo7aCX9zbGWydzkpvJXZEXUm9oci02uz3sCIJ9djDl2h3qttETJEwgoApkY5uC6s4Sgydwu0_1b4_1F6-61604_1n558xMvcmj9BeiFqxw&num=10&hl=en&bih=1029&biw=1920

I'm figuring the SBI param is an encoded version of the URL. Does anyone know what kind of encoding this is?

John Conde
  • 207,509
  • 96
  • 428
  • 469
Fer
  • 3,794
  • 13
  • 52
  • 98
  • 1
    Looks like this thread might be of some help: http://stackoverflow.com/questions/7584808/google-image-search-how-do-i-construct-a-reverse-image-search-url – mooreds Dec 01 '11 at 15:36

2 Answers2

43

It's not entirely clear what you want but if you throw your image URL at the end of this, google will return the results of the google reverse image search.

https://www.google.com/searchbyimage?&image_url=

j.c.
  • 439
  • 4
  • 3
  • 2017, still going strong. Loved seeing that permalink shrink from 1403 characters to 148. –  Jan 30 '17 at 11:46
  • Works only in browser and with browser plugins. Does not work from Java (P3P Policy fail) :( . If someone has a workaround for this, tell ME! – Develobba Apr 14 '17 at 15:51
  • To expand on what CodeNashor said, using this from code does not work—it only works in a browser. – dynamichael Jan 02 '18 at 02:24
0

I think that the images are converted into base64 and then the base64 code is compared with other entries in the database. Is any other way to compare the data if it is not in some sort of digital / numerical form.