php - Camouflage product id's on website -
i'm building retail e-shop jewellery manufacturer sells wholesale other shops , i'm looking efficient way "hide"/"camouflage" product id's products other competitors wont able see product's barcodes , find out manufacturer doing direct sales @ lower prices.
all products on website have 4-5 digit id name of products' images, ie product #1234 image filename 1234.jpg
one thought add 3-digit random int before , after product id make quite hard figure out product id. thought reverse id's or perform sort of scrambling. work fine links within site , i'd have strip off first , last 3 digits off product id's or de-scramble before using in queries can when comes displaying product images? don't want visitors able see filenames, blow cover ll product id's.
suggestions , ideas welcome.
you shouldn't allow direct access images that. instead, use php wrapper translates fake product id actual image file , return that.
ie http://.../getimage.php?fakeid=1337 translates actual product id 123 , readfile("/path/to/123.png");
Comments
Post a Comment