Reputation: 329
What I want to have:
What I did: Use DNS forward A record forwarding to internal ip of server where message is stored.
What happens: Loop back to internal ip occurs when user clicks provided link when user wants to proceed to 'gmail.com'
Is there any other way possible to do this? other than DNS?
Upvotes: 0
Views: 165
Reputation: 1019
It is possible by using a proxy server such as squid. You can place a custom app/script to make certain checks on the source/client if he already have been redirected to such a "warning message page". You can for example append the original url to the end of your redirect url so you can easily place a link on the site.
http://wiki.squid-cache.org/Features/Redirectors
Upvotes: 1
Reputation: 14446
You could place code on the DNS server which keeps track of who has been redirected and who's free to go to the link. It'd need to have some kind of database and store MAC addresses of users who don't need to be redirected.
Upvotes: 0