Fake image url

nickjett

Regular Member
Joined
Oct 28, 2010
Messages
258
Reaction score
23
Is it possible to have a url end with an image type, for example domain/page .jpg

But not actually be just a direct link to an image.

Is that possible?
 
Can anyone point me in the right direction for html / php code to display a page, like how a image.jpg would look like if viewing in a browser?
 
https://stackoverflow.com/questions/12925567/apache-rewrite-images-to-php-file-with-htaccess should help. Other than that, it would look exactly like any other simple HTML/PHP page. No files, nothing. Just a page. The point is to redirect the call to another file, which in your case could be HTML or PHP - whatever you add in there is up to you.

Doing it this way, I would need to add new mod_rewrites to htaccess file, every time I wanted to display a new image on a new page?
 
Another option is to use .htaccess to redirect a specific image name to a url (page). This was generally a method used by cookie stuffers back in the mid-2000s, where you would include an image in the html, that would redirect to a page to page that loaded up an affiliate link to "set the cookie," but if you view/source of the page, would never see anything out of place.

 
Doing it this way, I would need to add new mod_rewrites to htaccess file, every time I wanted to display a new image on a new page?
No, you wouldn't. You're basically just setting up a redirect from *.jpg (as an example) to *.php. Parameters do not mater (like at all).
 
Op, what exactly are you trying to do? You're overthinking it. Idk why these guys are bringing up .htaccess, that is unnecessary.
 
Op, what exactly are you trying to do? You're overthinking it. Idk why these guys are bringing up .htaccess, that is unnecessary.
You don't understand what he's trying to achieve and yet .. "these guys"? :D
 
I know what he's trying to do. I'm just wondering why he's trying to spoof a page as an image file.
 
I know what he's trying to do. I'm just wondering why he's trying to spoof a page as an image file.

Some sites where you can share images, video, etc. You can post links to your own site, but must be linked directly to the image itself. If I was to end a URL .jpg for example.

I would then just need to display a blank page with nothing else but the image, and display it just like it would look, if you actually did direct link to the image.

So that at first glance it would look like i am directly linking to an image directly.

Then i can add whatever code i want to, in the html :)

I know if i was to heavily spam such sites they would soon catch on, but in moderation it might work.
 
Some sites where you can share images, video, etc. You can post links to your own site, but must be linked directly to the image itself. If I was to end a URL .jpg for example.

I would then just need to display a blank page with nothing else but the image, and display it just like it would look, if you actually did direct link to the image.

So that at first glance it would look like i am directly linking to an image directly.

Then i can add whatever code i want to, in the html :)

I know if i was to heavily spam such sites they would soon catch on, but in moderation it might work.

I actually do this already with porn pinning websites.

What sites are you looking to abuse? I may be able to help you. I love doing stuff like this. :)
 
I don't know how your server is set up but you can try adding a query to the end of your URL youdomain.com/post1?img=somestring.jpg
You could also write an URL shortener and make your own redirect URLS, it takes 5 minutes to write one. If you don't know how to write one you can find free scripts for that on github I'm sure.
 
Back
Top