tags:

views:

47

answers:

1

How to check cookie from other website in php and do not allow to access mywebsite?

if client is have cookie example

if have cookie from www.example.com it would be redirect to other website?

please help me some people from other website is comment me about bad website and i want check

if have cookie from that i dont want show anything

  1. How to disallow to access my website if someone have cookie from exam.com website?
+4  A: 

It's impossible to view cookies that were set by another website.

konforce
Can check file?
monkey_boys
You can try looking at `$_SERVER['HTTP_REFERER']`.
konforce
can check php cookie file?
monkey_boys
can use java script?
monkey_boys
No, a cookie can only be read by the same domain that set it.
konforce
how to disallow if someone have cookie from exam.com website?
monkey_boys
With javascript: `if (confirm("Do you have a cookie from exam.com?")) location.href = 'http://stackoverflow.com';`
konforce