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.
redirect 302 /page.jpg http://www.mywickedsite.com/nefariouspage.php
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).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?
You don't understand what he's trying to achieve and yet .. "these guys"?Op, what exactly are you trying to do? You're overthinking it. Idk why these guys are bringing up .htaccess, that is unnecessary.
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.